Skip to content

Commit da051b2

Browse files
committed
ci: make sure prefetch tools are in path
1 parent 31225d3 commit da051b2

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

dev/checksums/fetchers.nix

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,18 @@
11
_: {
2-
perSystem = {pkgs, ...}: {
2+
perSystem = {pkgs, ...}: let
3+
nix-prefetch-deps = pkgs.lib.makeBinPath [
4+
pkgs.nix-prefetch-git
5+
pkgs.nix
6+
];
7+
in {
38
packages = {
49
nix-prefetch-elixir = pkgs.writeShellScriptBin "nix-prefetch-elixir" ''
10+
export PATH="${nix-prefetch-deps}:$PATH"
511
${pkgs.nix-prefetch-github}/bin/nix-prefetch-github elixir-lang elixir --rev v''${1} | ${pkgs.jq}/bin/jq -r .hash
612
'';
713

814
nix-prefetch-otp = pkgs.writeShellScriptBin "nix-prefetch-otp" ''
15+
export PATH="${nix-prefetch-deps}:$PATH"
916
${pkgs.nix-prefetch-github}/bin/nix-prefetch-github erlang otp --rev OTP-''${1} | ${pkgs.jq}/bin/jq -r .hash
1017
'';
1118
};

0 commit comments

Comments
 (0)