Skip to content

Instantly share code, notes, and snippets.

@ptitfred
Created September 3, 2018 20:49
Show Gist options
  • Save ptitfred/281ade20e0a5441832744efe9ec62912 to your computer and use it in GitHub Desktop.
Save ptitfred/281ade20e0a5441832744efe9ec62912 to your computer and use it in GitHub Desktop.
# nix-env -i -f ./stack2nix.nix
let
inherit (import <nixpkgs> {}) fetchFromGitHub;
nixpkgs = fetchFromGitHub {
owner = "NixOS";
repo = "nixpkgs-channels";
# Last revision of haskell-packages before bump of cabal2nix to 2.11
# and satisfying hpack >=0.29.6
rev = "78e2045f6d747655062ed2ceee595b878e488488";
sha256 = "0v9i8x5kh6x09ngzbzizn9cbf939vbsbw3wsa81ba57y3c1z3zj7";
};
pkgs = import nixpkgs {};
in
with pkgs;
[ cabal2nix stack2nix haskellPackages.hpack ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment