git.iko.soy/typeable/cabal2nix
on master help sign in
fromPackageDescription: add TODO note to resolveInNixpkgs

The special cases for those GNOME packages should not be necessary. https://github.com/NixOS/cabal2nix/pull/410 should simply remove them, but unfortunately `nix-env -qaP` does not list `gtk2` so we cannot discover the name.

commit74e5d360bf688108b6ebfad6cbe6a7992e3dd4ff authorPeter Simons <simons@cryp.to> dateSun 3 Mar 2019, 10:49 (8 years ago) parent38534b9
1 file changed+1−1
src/Distribution/Nixpkgs/Haskell/FromCabal.hs+1−1
src/Distribution/Nixpkgs/Haskell/FromCabal.hs+1−1
@@ -136,7 +136,7 @@ fromPackageDescription haskellResolver nixpkgsResolver missingDeps flags Package
136136 resolveInNixpkgs :: Identifier -> Binding
137137 resolveInNixpkgs i
138138 | i `elem` ["clang","lldb","llvm"] = binding # (i, path # ["self","llvmPackages",i]) -- TODO: evil!
139− | i == "gtk2" = binding # (i, path # ["pkgs","gtk2"])
139+ | i == "gtk2" = binding # (i, path # ["pkgs","gtk2"]) -- TODO: these cases should not be necessary
140140 | i == "gtk3" = binding # (i, path # ["pkgs","gtk3"])
141141 | i == "gtksourceview3" = binding # (i, path # ["pkgs","gtksourceview3"])
142142 | i == "vte_291" = binding # (i, path # ["pkgs","vte"])