From 8e256e46bca4b3f04c6379a8ff98d3c5cb7a3683 Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Fri, 20 Nov 2020 18:27:29 -0500 Subject: fix bug in overrideSource --- Biz/Bild/Overlay.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Biz/Bild') 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 // { -- cgit v1.2.3