bcachefs-tools: switch to nix-update-script

+2 -10
+2 -10
pkgs/tools/filesystems/bcachefs-tools/default.nix
··· 20 20 rustc, 21 21 rustPlatform, 22 22 makeWrapper, 23 - writeScript, 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 - updateScript = writeScript "update-bcachefs-tools-and-cargo-lock.sh" '' 108 - #!/usr/bin/env nix-shell 109 - #!nix-shell -i bash -p curl jq common-updater-scripts 110 - res="$(curl ''${GITHUB_TOKEN:+-u ":$GITHUB_TOKEN"} \ 111 - -sL "https://api.github.com/repos/${finalAttrs.src.owner}/${finalAttrs.src.repo}/tags?per_page=1")" 112 - 113 - version="$(echo $res | jq '.[0].name | split("v") | .[1]' --raw-output)" 114 - update-source-version ${finalAttrs.pname} "$version" --ignore-same-hash 115 - ''; 107 + updateScript = nix-update-script {}; 116 108 }; 117 109 118 110 enableParallelBuilding = true;