diff options
author | Ben Sima <ben@bsima.me> | 2020-11-20 18:27:29 -0500 |
---|---|---|
committer | Ben Sima <ben@bsima.me> | 2020-11-20 18:27:29 -0500 |
commit | 8e256e46bca4b3f04c6379a8ff98d3c5cb7a3683 (patch) | |
tree | 08f29a205d1a1970887e5550ec1d7f6a219de091 /Biz/Bild | |
parent | 04859e901c40ba6c23c3cbace14d5339ce89db38 (diff) |
fix bug in overrideSource
Diffstat (limited to 'Biz/Bild')
-rw-r--r-- | Biz/Bild/Overlay.nix | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Biz/Bild/Overlay.nix b/Biz/Bild/Overlay.nix index 2fecae1..dc52eab 100644 --- a/Biz/Bild/Overlay.nix +++ b/Biz/Bild/Overlay.nix @@ -17,10 +17,10 @@ in rec # Modifies a derivation with our source and version, keeping old build # rules. This will fail if build steps have changed, or if no build # rules are available upstream.. - overrideSource = name: pkgs.${name}.overrideAttrs (old: old // rec { - name = "${name}-${version}"; - version = pkgs.sources.${name}.version or pkgs.sources.${name}.rev; - src = pkgs.sources.${name}; + overrideSource = depName: pkgs.${depName}.overrideAttrs (old: old // rec { + name = "${depName}-${version}"; + version = pkgs.sources.${depName}.version or pkgs.sources.${depName}.rev; + src = pkgs.sources.${depName}; }); haskell = pkgs.haskell // { |