added nix build
This commit is contained in:
parent
47454593d7
commit
14861ec3ed
|
@ -22,14 +22,14 @@ library
|
||||||
other-modules:
|
other-modules:
|
||||||
-- other-extensions:
|
-- other-extensions:
|
||||||
ghc-options: -Wall
|
ghc-options: -Wall
|
||||||
build-depends: base ^>=4.14.1.0
|
build-depends: base
|
||||||
, wreq
|
, wreq
|
||||||
, aeson
|
, aeson
|
||||||
, lens-aeson
|
, lens-aeson
|
||||||
, lens
|
, lens
|
||||||
, bytestring
|
, bytestring
|
||||||
, text
|
, text
|
||||||
, brick
|
, brick < 1
|
||||||
, HTTP
|
, HTTP
|
||||||
, vty
|
, vty
|
||||||
, transformers
|
, transformers
|
||||||
|
@ -44,7 +44,7 @@ executable kino
|
||||||
other-modules:
|
other-modules:
|
||||||
-- other-extensions:
|
-- other-extensions:
|
||||||
ghc-options: -Wall -threaded
|
ghc-options: -Wall -threaded
|
||||||
build-depends: base ^>=4.14.1.0
|
build-depends: base
|
||||||
, kino
|
, kino
|
||||||
hs-source-dirs: app
|
hs-source-dirs: app
|
||||||
default-language: Haskell2010
|
default-language: Haskell2010
|
||||||
|
@ -54,4 +54,4 @@ test-suite kino-test
|
||||||
type: exitcode-stdio-1.0
|
type: exitcode-stdio-1.0
|
||||||
hs-source-dirs: test
|
hs-source-dirs: test
|
||||||
main-is: MyLibTest.hs
|
main-is: MyLibTest.hs
|
||||||
build-depends: base ^>=4.14.1.0
|
build-depends: base
|
||||||
|
|
20
kino.nix
Normal file
20
kino.nix
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
{ mkDerivation, aeson, base, brick_0_70_1, bytestring, Clipboard, HTTP
|
||||||
|
, lens, lens-aeson, lib, microlens, microlens-th, text
|
||||||
|
, transformers, vty, wreq
|
||||||
|
}:
|
||||||
|
mkDerivation {
|
||||||
|
pname = "kino";
|
||||||
|
version = "0.1.0.0";
|
||||||
|
src = ./.;
|
||||||
|
isLibrary = true;
|
||||||
|
isExecutable = true;
|
||||||
|
libraryHaskellDepends = [
|
||||||
|
aeson base brick_0_70_1 bytestring Clipboard HTTP lens lens-aeson
|
||||||
|
microlens microlens-th text transformers vty wreq
|
||||||
|
];
|
||||||
|
executableHaskellDepends = [ base ];
|
||||||
|
testHaskellDepends = [ base ];
|
||||||
|
description = "A terminal interface to the yts.mx api";
|
||||||
|
license = lib.licenses.isc;
|
||||||
|
mainProgram = "kino";
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user