mirror of
https://github.com/Haskell-Things/ImplicitCAD.git
synced 2024-11-04 01:26:48 +03:00
d963072261
`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 ```
8 lines
289 B
Nix
8 lines
289 B
Nix
{ 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 { }
|