Skip to content

Commit 60d2e57

Browse files
Add Nix configuration
1 parent 8b4266b commit 60d2e57

File tree

5 files changed

+29
-0
lines changed

5 files changed

+29
-0
lines changed

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,10 @@
66
*.yaml.lock
77
stack-nix*
88

9+
# cabal
10+
cabal.project.local
11+
cabal.project.local~
12+
/dist-newstyle/
13+
914
# vi
1015
.*.swp

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ following conventions:
3030

3131
* Refactor `Makefile`, add `STACK_NIX_PATH` support
3232
* Add `test-all` command to `Makefile`
33+
* Add Nix configuration
3334

3435
## 0.0.1.0 (2020-01-22)
3536

default.nix

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
{ nixpkgs ? import <nixpkgs> {}, compiler ? "ghc883" }:
2+
nixpkgs.pkgs.haskell.packages.${compiler}.callPackage ./queue-sheet.nix { }

queue-sheet.nix

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{ mkDerivation, aeson, ansi-wl-pprint, base, directory, filepath
2+
, ginger, optparse-applicative, process, scientific, stdenv, text
3+
, transformers, ttc, yaml
4+
}:
5+
mkDerivation {
6+
pname = "queue-sheet";
7+
version = "0.0.1.0";
8+
src = ./.;
9+
isLibrary = false;
10+
isExecutable = true;
11+
executableHaskellDepends = [
12+
aeson ansi-wl-pprint base directory filepath ginger
13+
optparse-applicative process scientific text transformers ttc yaml
14+
];
15+
testHaskellDepends = [ base ];
16+
homepage = "https://github.com/ExtremaIS/queue-sheet-haskell#readme";
17+
description = "queue sheet utility";
18+
license = stdenv.lib.licenses.mit;
19+
}

shell.nix

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
{ nixpkgs ? import <nixpkgs> {}, compiler ? "ghc883" }:
2+
(import ./default.nix { inherit nixpkgs compiler; }).env

0 commit comments

Comments
 (0)