on imp/fix-cabal-patches help sign in
haskell.nix/test-ghcjs.nix
12 lines 500 B history raw
1with import ./. { nixpkgs = ../nixpkgs; nixpkgsArgs = { crossSystem = { config = "js-unknown-ghcjs"; }; }; };
2let Cabal = buildPackages.haskell-nix.hackage-package {
3 name = "Cabal"; version = "2.4.1.0";
4 modules = [
5 { packages.Cabal.patches = [ ./Cabal-install-folder.diff ]; }
6 ];
7}; in
8(haskell-nix.hackage-package {
9 name = "hello"; version = "1.0.0.2";
10 modules = [
11 ({config, ... }:{ packages.hello.package.setup-depends = [ Cabal ]; })
12 ];}).components.exes.hello