git.iko.soy/typeable/cabal2nix
on master help sign in
Add name mapping for nix-hash build tool.

Fixes https://github.com/peti/nix-paths/issues/3.

commit42b218ec93079a323272b827421334ae9e89817b authorPeter Simons <simons@cryp.to> dateMon 22 Jan 2018, 08:38 (9 years ago) parentfbcdc2a
1 file changed+2−1
src/Distribution/Nixpkgs/Haskell/FromCabal/Name.hs+2−1
src/Distribution/Nixpkgs/Haskell/FromCabal/Name.hs+2−1
@@ -175,6 +175,7 @@ libNixName x = return (guessNixIdentifier x)
175175buildToolNixName :: String -> [Identifier]
176176buildToolNixName "" = return (error "buildToolNixName: invalid empty dependency name")
177177buildToolNixName "cabal" = return "cabal-install"
178+buildToolNixName "fltk-config" = return "fltk"
178179buildToolNixName "ghc" = []
179180buildToolNixName "gtk2hsC2hs" = return "gtk2hs-buildtools"
180181buildToolNixName "gtk2hsHookGenerator" = return "gtk2hs-buildtools"
@@ -182,9 +183,9 @@ buildToolNixName "gtk2hsTypeGen" = return "gtk2hs-buildtools"
182183buildToolNixName "hsc2hs" = []
183184buildToolNixName "nix-build" = return "nix"
184185buildToolNixName "nix-env" = return "nix"
186+buildToolNixName "nix-hash" = return "nix"
185187buildToolNixName "nix-instantiate" = return "nix"
186188buildToolNixName "nix-store" = return "nix"
187−buildToolNixName "fltk-config" = return "fltk"
188189buildToolNixName x = return (fromString x)
189190
190191-- | Helper function to extract the package name from a String that may or may