diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2018-05-15 21:49:12 +0200 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2018-05-15 21:49:12 +0200 |
commit | dcbcaeee940671a8288ec564cc7bc277eac7a5ad (patch) | |
tree | aa9d4d2cc0db2af7c5ed59cff0e21e03eae76501 | |
parent | 5144d0d9aadda6453155b99589ec8c1a97bcd674 (diff) | |
download | trivmix-dcbcaeee940671a8288ec564cc7bc277eac7a5ad.tar trivmix-dcbcaeee940671a8288ec564cc7bc277eac7a5ad.tar.gz trivmix-dcbcaeee940671a8288ec564cc7bc277eac7a5ad.tar.bz2 trivmix-dcbcaeee940671a8288ec564cc7bc277eac7a5ad.tar.xz trivmix-dcbcaeee940671a8288ec564cc7bc277eac7a5ad.zip |
Poke build
-rw-r--r-- | package.yaml | 2 | ||||
-rw-r--r-- | trivmix.cabal | 68 | ||||
-rw-r--r-- | trivmix.nix | 6 | ||||
-rw-r--r-- | trivmix.nix.gup | 2 |
4 files changed, 7 insertions, 71 deletions
diff --git a/package.yaml b/package.yaml index 75b14dc..7f85434 100644 --- a/package.yaml +++ b/package.yaml | |||
@@ -7,6 +7,8 @@ category: Sound | |||
7 | build-type: Simple | 7 | build-type: Simple |
8 | git: https://git.yggdrasil.li/gkleen/pub/trivmix | 8 | git: https://git.yggdrasil.li/gkleen/pub/trivmix |
9 | 9 | ||
10 | ghc-options: -threaded | ||
11 | |||
10 | library: | 12 | library: |
11 | source-dirs: src | 13 | source-dirs: src |
12 | exposed-modules: Trivmix.Types | 14 | exposed-modules: Trivmix.Types |
diff --git a/trivmix.cabal b/trivmix.cabal deleted file mode 100644 index 8cadc37..0000000 --- a/trivmix.cabal +++ /dev/null | |||
@@ -1,68 +0,0 @@ | |||
1 | name: trivmix | ||
2 | version: 4.0.1 | ||
3 | category: Sound | ||
4 | author: Gregor Kleen <aethoago@141.li> | ||
5 | license: PublicDomain | ||
6 | license-file: LICENSE | ||
7 | build-type: Simple | ||
8 | cabal-version: >= 1.10 | ||
9 | |||
10 | source-repository head | ||
11 | type: git | ||
12 | location: https://git.yggdrasil.li/gkleen/pub/trivmix | ||
13 | |||
14 | library | ||
15 | exposed-modules: | ||
16 | Trivmix.Types | ||
17 | other-modules: | ||
18 | Data.Scientific.Lift | ||
19 | Paths_trivmix | ||
20 | hs-source-dirs: | ||
21 | src | ||
22 | build-depends: | ||
23 | base >=4.8 && <5 | ||
24 | , case-insensitive >=1.2 && <2 | ||
25 | , data-default >=0.5 && <1 | ||
26 | , refined >=0.1.2.1 && <1 | ||
27 | , scientific >=0.3.5.3 && <1 | ||
28 | , th-lift >=0.7.8 && <1 | ||
29 | default-language: Haskell2010 | ||
30 | |||
31 | executable adjmix | ||
32 | main-is: Adjmix.hs | ||
33 | other-modules: | ||
34 | Paths_trivmix | ||
35 | hs-source-dirs: | ||
36 | adjmix | ||
37 | build-depends: | ||
38 | base >=4.8 && <5 | ||
39 | , filelock >=0.1 && <1 | ||
40 | , filepath >=1.3 && <2 | ||
41 | , optparse-applicative >=0.11 && <1 | ||
42 | , trivmix | ||
43 | default-language: Haskell2010 | ||
44 | |||
45 | executable trivmix | ||
46 | main-is: Trivmix.hs | ||
47 | other-modules: | ||
48 | Paths_trivmix | ||
49 | hs-source-dirs: | ||
50 | trivmix | ||
51 | build-depends: | ||
52 | base >=4.8 && <5 | ||
53 | , directory >=1.2 && <2 | ||
54 | , explicit-exception >=0.1 && <1 | ||
55 | , filelock >=0.1 && <1 | ||
56 | , filepath >=1.3 && <2 | ||
57 | , heredoc >=0.2.0.0 && <1 | ||
58 | , hinotify >=0.3 && <1 | ||
59 | , jack >=0.7 && <1 | ||
60 | , optparse-applicative >=0.11 && <1 | ||
61 | , process >=1.2 && <2 | ||
62 | , refined >=0.1.2.1 && <1 | ||
63 | , scientific >=0.3.5.3 && <1 | ||
64 | , systemd >=1.1.2 && <2 | ||
65 | , transformers >=0.3 && <1 | ||
66 | , trivmix | ||
67 | , unix >=2.7 && <3 | ||
68 | default-language: Haskell2010 | ||
diff --git a/trivmix.nix b/trivmix.nix index bd9c278..8ddce63 100644 --- a/trivmix.nix +++ b/trivmix.nix | |||
@@ -1,6 +1,6 @@ | |||
1 | { mkDerivation, base, case-insensitive, data-default, directory | 1 | { mkDerivation, base, case-insensitive, data-default, directory |
2 | , explicit-exception, filelock, filepath, heredoc, hinotify, jack | 2 | , explicit-exception, filelock, filepath, heredoc, hinotify, hpack |
3 | , optparse-applicative, process, refined, scientific, stdenv | 3 | , jack, optparse-applicative, process, refined, scientific, stdenv |
4 | , systemd, th-lift, transformers, unix | 4 | , systemd, th-lift, transformers, unix |
5 | }: | 5 | }: |
6 | mkDerivation { | 6 | mkDerivation { |
@@ -12,10 +12,12 @@ mkDerivation { | |||
12 | libraryHaskellDepends = [ | 12 | libraryHaskellDepends = [ |
13 | base case-insensitive data-default refined scientific th-lift | 13 | base case-insensitive data-default refined scientific th-lift |
14 | ]; | 14 | ]; |
15 | libraryToolDepends = [ hpack ]; | ||
15 | executableHaskellDepends = [ | 16 | executableHaskellDepends = [ |
16 | base directory explicit-exception filelock filepath heredoc | 17 | base directory explicit-exception filelock filepath heredoc |
17 | hinotify jack optparse-applicative process refined scientific | 18 | hinotify jack optparse-applicative process refined scientific |
18 | systemd transformers unix | 19 | systemd transformers unix |
19 | ]; | 20 | ]; |
21 | preConfigure = "hpack"; | ||
20 | license = stdenv.lib.licenses.publicDomain; | 22 | license = stdenv.lib.licenses.publicDomain; |
21 | } | 23 | } |
diff --git a/trivmix.nix.gup b/trivmix.nix.gup index bc92dcd..2af68e4 100644 --- a/trivmix.nix.gup +++ b/trivmix.nix.gup | |||
@@ -1,5 +1,5 @@ | |||
1 | #!/usr/bin/env zsh | 1 | #!/usr/bin/env zsh |
2 | 2 | ||
3 | gup -u ${2:r}.cabal | 3 | gup -u package.yaml |
4 | cd ${2:h} | 4 | cd ${2:h} |
5 | cabal2nix ./. >! ${1} | 5 | cabal2nix ./. >! ${1} |