-
-
Save ddellacosta/f98ff02058a4d58aaae15aba523bb21c to your computer and use it in GitHub Desktop.
how else would I ensure cabal and cabal2nix are loaded in the shell on a project-specific basis?
This file contains 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
{ nixpkgs ? import ./pinned.nix {}, compiler ? "ghc863" }: | |
let | |
inherit (nixpkgs) pkgs; | |
hpkgs = pkgs.haskell.packages.${compiler}; | |
in | |
(import ./. { inherit nixpkgs compiler; }).overrideAttrs (oldAttrs: { | |
nativeBuildInputs = [ hpkgs.cabal-install hpkgs.cabal2nix ]; | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
clever
in #nixos gave me this approach which is pretty neat: