1
1
mirror of https://github.com/Yvee1/hascard.git synced 2024-11-21 17:50:12 +03:00

Add Nix support

This allows you to build the project with `nix-build`, as well as drop into a dev shell via `nix-shell`.
This commit is contained in:
Sridhar Ratnakumar 2020-07-20 07:16:41 -04:00 committed by GitHub
parent d7befd5f0a
commit 8e7b6ef079
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

11
default.nix Normal file
View File

@ -0,0 +1,11 @@
let
pkgs = import <nixpkgs> { };
in
pkgs.haskellPackages.developPackage {
root = ./.;
modifier = drv:
pkgs.haskell.lib.addBuildTools drv (with pkgs.haskellPackages;
[ cabal-install
ghcid
]);
}