We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 31225d3 commit da051b2Copy full SHA for da051b2
1 file changed
dev/checksums/fetchers.nix
@@ -1,11 +1,18 @@
1
_: {
2
- perSystem = {pkgs, ...}: {
+ perSystem = {pkgs, ...}: let
3
+ nix-prefetch-deps = pkgs.lib.makeBinPath [
4
+ pkgs.nix-prefetch-git
5
+ pkgs.nix
6
+ ];
7
+ in {
8
packages = {
9
nix-prefetch-elixir = pkgs.writeShellScriptBin "nix-prefetch-elixir" ''
10
+ export PATH="${nix-prefetch-deps}:$PATH"
11
${pkgs.nix-prefetch-github}/bin/nix-prefetch-github elixir-lang elixir --rev v''${1} | ${pkgs.jq}/bin/jq -r .hash
12
'';
13
14
nix-prefetch-otp = pkgs.writeShellScriptBin "nix-prefetch-otp" ''
15
16
${pkgs.nix-prefetch-github}/bin/nix-prefetch-github erlang otp --rev OTP-''${1} | ${pkgs.jq}/bin/jq -r .hash
17
18
};
0 commit comments