tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
lol
0
fork
atom
overview
issues
pulls
pipelines
tiny-rdm: 1.2.4 -> 1.2.5
qzylinra
6 months ago
eb1a0e7d
48702740
+24
-13
1 changed file
expand all
collapse all
unified
split
pkgs
by-name
ti
tiny-rdm
package.nix
+24
-13
pkgs/by-name/ti/tiny-rdm/package.nix
···
6
npmHooks,
7
nodejs,
8
wails,
9
-
webkitgtk_4_0,
10
pkg-config,
11
-
libsoup_3,
12
copyDesktopItems,
13
makeDesktopItem,
14
autoPatchelfHook,
15
-
nix-update-script,
16
}:
17
18
buildGoModule (finalAttrs: {
19
pname = "tiny-rdm";
20
-
version = "1.2.4";
21
22
src = fetchFromGitHub {
23
owner = "tiny-craft";
24
repo = "tiny-rdm";
25
tag = "v${finalAttrs.version}";
26
-
hash = "sha256-wSTC9Ne/Q9LLZL2+8ObMFCXrf4VSI0LkZhHHbAiXCYE=";
27
};
28
29
postPatch = ''
···
31
--replace-fail "prefStore.autoCheckUpdate" "false"
32
'';
33
34
-
vendorHash = "sha256-Hh/qudoCZtIHJLsI6GQ814W4nC/uRd4gQd0PobzMlnQ=";
35
36
env = {
37
CGO_ENABLED = 1;
38
npmDeps = fetchNpmDeps {
39
src = "${finalAttrs.src}/frontend";
40
-
hash = "sha256-dcoTwfRocVjpBzqS9f2MkXjzcCI5sLjRZ3UC/Ml+7T0=";
41
};
42
npmRoot = "frontend";
43
};
···
51
copyDesktopItems
52
];
53
54
-
buildInputs = [
55
-
webkitgtk_4_0
56
-
libsoup_3
57
-
];
58
59
buildPhase = ''
60
runHook preBuild
61
62
-
wails build -m -trimpath -devtools -tags webkit2_40 -o tiny-rdm
63
64
runHook postBuild
65
'';
···
88
runHook postInstall
89
'';
90
91
-
passthru.updateScript = nix-update-script { };
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
92
93
meta = {
94
description = "Modern, colorful, super lightweight Redis GUI client";
···
6
npmHooks,
7
nodejs,
8
wails,
9
+
webkitgtk_4_1,
10
pkg-config,
0
11
copyDesktopItems,
12
makeDesktopItem,
13
autoPatchelfHook,
14
+
writeScript,
15
}:
16
17
buildGoModule (finalAttrs: {
18
pname = "tiny-rdm";
19
+
version = "1.2.5";
20
21
src = fetchFromGitHub {
22
owner = "tiny-craft";
23
repo = "tiny-rdm";
24
tag = "v${finalAttrs.version}";
25
+
hash = "sha256-LzZsnO14cyYzmEas23Mrf0I+ZZa7y4ZfLg/gPBLcNc8=";
26
};
27
28
postPatch = ''
···
30
--replace-fail "prefStore.autoCheckUpdate" "false"
31
'';
32
33
+
vendorHash = "sha256-dv+1yRl0UUo6lkLjfYAgRDR8pMfuh4lM6JapIXNQG9Q=";
34
35
env = {
36
CGO_ENABLED = 1;
37
npmDeps = fetchNpmDeps {
38
src = "${finalAttrs.src}/frontend";
39
+
hash = "sha256-0QMakUr2QBDYb/BRMALOACsfknrzimgaNkdFMjg73og=";
40
};
41
npmRoot = "frontend";
42
};
···
50
copyDesktopItems
51
];
52
53
+
buildInputs = [ webkitgtk_4_1 ];
0
0
0
54
55
buildPhase = ''
56
runHook preBuild
57
58
+
wails build -m -trimpath -devtools -tags webkit2_41 -o tiny-rdm
59
60
runHook postBuild
61
'';
···
84
runHook postInstall
85
'';
86
87
+
passthru = {
88
+
inherit (finalAttrs.env) npmDeps;
89
+
updateScript = writeScript "update-tiny-rdm" ''
90
+
#!/usr/bin/env nix-shell
91
+
#!nix-shell -i bash -p bash nix nix-update common-updater-scripts
92
+
set -eou pipefail
93
+
version=$(nix eval --log-format raw --raw --file default.nix tiny-rdm.version)
94
+
nix-update tiny-rdm || true
95
+
latestVersion=$(nix eval --log-format raw --raw --file default.nix tiny-rdm.version)
96
+
if [[ "$latestVersion" == "$version" ]]; then
97
+
exit 0
98
+
fi
99
+
update-source-version tiny-rdm "$latestVersion" --source-key=npmDeps --ignore-same-version
100
+
nix-update tiny-rdm --version skip
101
+
'';
102
+
};
103
104
meta = {
105
description = "Modern, colorful, super lightweight Redis GUI client";