32 lines
792 B
Nix
32 lines
792 B
Nix
{ pkgs ? import (
|
|
builtins.fetchGit {
|
|
name = "nixpkgs-pinned";
|
|
#url = https://github.com/NixOS/nixpkgs/;
|
|
url = https://github.com/schmittlauch/nixpkgs/;
|
|
#ref = "refs/heads/release-20.03";
|
|
ref = "refs/heads/bump-asn1-types";
|
|
#rev = "10100a97c8964e82b30f180fda41ade8e6f69e41";
|
|
rev = "cb0e38127c7a66c292e60d7e8c1ab4eeb26c44a4";
|
|
}) {},
|
|
compiler ? "ghc865"
|
|
}:
|
|
|
|
let
|
|
hp = pkgs.haskell.packages."${compiler}";
|
|
src = pkgs.nix-gitignore.gitignoreSource [] ./.;
|
|
drv = hp.callCabal2nix "Hash2Pub" "${src}/Hash2Pub.cabal" {};
|
|
in
|
|
{
|
|
my_project = drv;
|
|
shell = hp.shellFor {
|
|
withHoogle = true;
|
|
packages = p: [ drv ];
|
|
buildInputs = with hp;
|
|
[
|
|
haddock
|
|
cabal-install
|
|
hlint
|
|
pkgs.python3Packages.asn1ate
|
|
];
|
|
};
|
|
}
|