mirror of
https://github.com/juspay/jrec.git
synced 2024-09-20 22:58:27 +03:00
27 lines
909 B
Nix
27 lines
909 B
Nix
let
|
|
nixpkgsRev = "0f5ce2fac0c726036ca69a5524c59a49e2973dd4";
|
|
nixpkgsSha = "0nkk492aa7pr0d30vv1aw192wc16wpa1j02925pldc09s9m9i0r3";
|
|
pkgs = import (builtins.fetchTarball {
|
|
url = "https://github.com/nixos/nixpkgs/archive/${nixpkgsRev}.tar.gz";
|
|
sha256 = nixpkgsSha;
|
|
}) {};
|
|
gitignoreSrc = pkgs.fetchFromGitHub {
|
|
owner = "hercules-ci";
|
|
repo = "gitignore";
|
|
# put the latest commit sha of gitignore Nix library here:
|
|
rev = "c4662e6";
|
|
# use what nix suggests in the mismatch message here:
|
|
sha256 = "sha256:1npnx0h6bd0d7ql93ka7azhj40zgjp815fw2r6smg8ch9p7mzdlx";
|
|
};
|
|
inherit (import gitignoreSrc { inherit (pkgs); }) gitignoreSource;
|
|
in
|
|
pkgs.haskellPackages.developPackage {
|
|
root = gitignoreSource ./.;
|
|
name = "jrec";
|
|
modifier = drv:
|
|
pkgs.haskell.lib.addBuildTools drv (with pkgs.haskellPackages;
|
|
[ cabal-install
|
|
ghcid
|
|
]);
|
|
}
|