tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
bcachefs-tools: switch to nix-update-script
John Titor
2 years ago
d49f993b
0d2a613a
+2
-10
1 changed file
expand all
collapse all
unified
split
pkgs
tools
filesystems
bcachefs-tools
default.nix
+2
-10
pkgs/tools/filesystems/bcachefs-tools/default.nix
···
20
20
rustc,
21
21
rustPlatform,
22
22
makeWrapper,
23
23
-
writeScript,
23
23
+
nix-update-script,
24
24
python3,
25
25
fuseSupport ? false,
26
26
}:
···
104
104
inherit (nixosTests.installer) bcachefsSimple bcachefsEncrypted bcachefsMulti;
105
105
};
106
106
107
107
-
updateScript = writeScript "update-bcachefs-tools-and-cargo-lock.sh" ''
108
108
-
#!/usr/bin/env nix-shell
109
109
-
#!nix-shell -i bash -p curl jq common-updater-scripts
110
110
-
res="$(curl ''${GITHUB_TOKEN:+-u ":$GITHUB_TOKEN"} \
111
111
-
-sL "https://api.github.com/repos/${finalAttrs.src.owner}/${finalAttrs.src.repo}/tags?per_page=1")"
112
112
-
113
113
-
version="$(echo $res | jq '.[0].name | split("v") | .[1]' --raw-output)"
114
114
-
update-source-version ${finalAttrs.pname} "$version" --ignore-same-hash
115
115
-
'';
107
107
+
updateScript = nix-update-script {};
116
108
};
117
109
118
110
enableParallelBuilding = true;