Created
January 13, 2018 18:10
-
-
Save gilligan/09343278fd36e8d916677e45fd7c7563 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { pkgs ? import ./nixpkgs.nix | |
| , compiler ? "ghc802" | |
| , imageName ? "foo:dev" | |
| }: | |
| let | |
| inherit (pkgs.haskell.lib) buildStrictly justStaticExecutables overrideCabal; | |
| inherit (pkgs.lib.strings) splitString; | |
| inherit (builtins) elemAt; | |
| cabal2nix = pkgs.haskell.packages."${compiler}".callCabal2nix; | |
| in rec { | |
| foo = buildStrictly (justStaticExecutables (cabal2nix "foo" ./. {})); | |
| shell = overrideCabal getty-images-token-service (old: { | |
| libraryHaskellDepends = old.libraryHaskellDepends ++ (with pkgs; [ haskellPackages.stylish-haskell ]); | |
| }).env; | |
| #shell = getty-images-token-service.env; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment