mirror of
https://github.com/Haskell-Things/ImplicitCAD.git
synced 2024-09-17 16:08:01 +03:00
Add nix support files
`default.nix` for building the project with `nix-build` using systems `<nixpkgs>` and default compiler. `shell.nix` to allow usage of `nix-shell` to enter development shell. `default.nix` uses `withImplicitSnap = false` default. To build with `implicitsnap` use ``` nix-build --arg withImplicitSnap true ``` `shell.nix` enables `withImplicitSnap` by default and can be overriden with ``` nix-shell --arg withImplicitSnap false ```
This commit is contained in:
parent
9ac59e955e
commit
d963072261
7
default.nix
Normal file
7
default.nix
Normal file
@ -0,0 +1,7 @@
|
||||
{ pkgs ? import <nixpkgs> {}, withImplicitSnap ? false }:
|
||||
let
|
||||
src = pkgs.nix-gitignore.gitignoreSource [ ] ./.;
|
||||
in
|
||||
if withImplicitSnap
|
||||
then pkgs.haskellPackages.callCabal2nixWithOptions "implicit" src "-fimplicitsnap" { }
|
||||
else pkgs.haskellPackages.callCabal2nix "implicit" src { }
|
Loading…
Reference in New Issue
Block a user