Skip to content
Permalink
Browse files

Fix functionArgs issue on recent nixpkgs

  • Loading branch information...
nmattia committed Sep 23, 2019
1 parent 7ba93e7 commit a014fb36300f407d22341019f041ba2684e57cf7
Showing with 5 additions and 1 deletion.
  1. +5 −1 nix/sources.nix
@@ -47,6 +47,10 @@ with rec
# annoyingly this means we have to specify them
fetchzip = { url, sha256 }@attrs: pkgs.fetchzip attrs;

# A wrapper around pkgs.fetchurl that has inspectable arguments,
# annoyingly this means we have to specify them
fetchurl = { url, sha256 }@attrs: pkgs.fetchurl attrs;

hasNixpkgsPath = (builtins.tryEval <nixpkgs>).success;
hasThisAsNixpkgsPath =
(builtins.tryEval <nixpkgs>).success && <nixpkgs> == ./.;
@@ -71,7 +75,7 @@ with rec
in builtins.getAttr fetcherName {
"tarball" = fetchzip;
"builtin-tarball" = builtins_fetchTarball;
"file" = pkgs.fetchurl;
"file" = fetchurl;
"builtin-url" = builtins_fetchurl;
};
};

0 comments on commit a014fb3

Please sign in to comment.
You can’t perform that action at this time.