on angerman/old-ghc-nix-with-buildPackages help sign in
haskell.nix/test-rpi.nix
12 lines 514 B history raw
1with import ./. { nixpkgs = ../nixpkgs; nixpkgsArgs = { crossSystem = { config = "armv6l-unknown-linux-gnueabihf"; }; }; };
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