Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 19 lines 497 B view raw
1# Impure functions, for passthru.updateScript runtime only 2{ 3 aarch64Url, 4 x86_64Url, 5 version, 6 pkgs ? import ../../../../../default.nix { }, 7}: 8let 9 inherit (import ./update-utils.nix { inherit (pkgs) lib; }) 10 getLatestStableVersion 11 getSha256 12 ; 13in 14pkgs.mkShell rec { 15 buildInputs = [ pkgs.common-updater-scripts ]; 16 newVersion = getLatestStableVersion; 17 newAarch64Sha256 = getSha256 aarch64Url version newVersion; 18 newX86_64Sha256 = getSha256 x86_64Url version newVersion; 19}