diff options
author | tv <tv@shackspace.de> | 2014-12-28 22:22:43 +0100 |
---|---|---|
committer | tv <tv@shackspace.de> | 2014-12-28 22:26:36 +0100 |
commit | b553a8fb2513fac00363dcaeb44ceeea9be3636c (patch) | |
tree | e376616b627a09b12ab90b7f41e992340c2da494 | |
parent | b1aa17616f56517fa83607296c25ee6c333968c1 (diff) |
cabalize & nixify
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | default.nix | 5 | ||||
-rw-r--r-- | much.cabal | 27 | ||||
-rw-r--r-- | nixpkgs/vty-5.2.5.nix | 34 |
4 files changed, 33 insertions, 34 deletions
@@ -1,3 +1,4 @@ *.hi *.o .graveyard +/dist diff --git a/default.nix b/default.nix new file mode 100644 index 0000000..5901063 --- /dev/null +++ b/default.nix @@ -0,0 +1,5 @@ +{ pkgs ? import <nixpkgs> {} +, src ? ./. +, name ? "much" +}: +pkgs.haskellPackages.buildLocalCabal src name diff --git a/much.cabal b/much.cabal new file mode 100644 index 0000000..4e87d6f --- /dev/null +++ b/much.cabal @@ -0,0 +1,27 @@ +name: much +version: 0.0.0.0 +license: MIT +author: tv <tv@shackspace.de> +maintainer: tv@shackspace.de +build-type: Simple +cabal-version: >=1.10 + +executable much + main-is: test5.hs + build-depends: base >=4.7 && <4.8 + , aeson >=0.8 && <0.9 + , bytestring >=0.10 && <0.11 + , case-insensitive >=1.2 && <1.3 + , containers >=0.5 && <0.6 + , deepseq >=1.3 && <1.4 + , directory >=1.2 && <1.3 + , mtl >=2.1 && <2.2 + , process >=1.2 && <1.3 + , rosezipper >=0.2 && <0.3 + , terminal-size >= 0.3 && <0.4 + , text >=1.2 && <1.3 + , time >=1.4 && <1.5 + , unix >=2.7 && <2.8 + , vector >=0.10 && <0.11 + default-language: Haskell2010 + ghc-options: -O2 -Wall -threaded diff --git a/nixpkgs/vty-5.2.5.nix b/nixpkgs/vty-5.2.5.nix deleted file mode 100644 index 6d552ed..0000000 --- a/nixpkgs/vty-5.2.5.nix +++ /dev/null @@ -1,34 +0,0 @@ -# This file was auto-generated by cabal2nix. Please do NOT edit manually! - -{ cabal, blazeBuilder, Cabal, dataDefault, deepseq, filepath -, hashable, HUnit, lens, mtl, parallel, parsec, QuickCheck -, quickcheckAssertions, random, smallcheck, stringQq, terminfo -, testFramework, testFrameworkHunit, testFrameworkSmallcheck, text -, transformers, utf8String, vector -}: - -cabal.mkDerivation (self: { - pname = "vty"; - version = "5.2.5"; - sha256 = "15c49nzmkld4vcdmjbh0azlzsqrqmfb0z87zfixqxcl0bafpzrjy"; - isLibrary = true; - isExecutable = true; - buildDepends = [ - blazeBuilder dataDefault deepseq filepath hashable lens mtl - parallel parsec terminfo text transformers utf8String vector - ]; - testDepends = [ - blazeBuilder Cabal dataDefault deepseq HUnit lens mtl QuickCheck - quickcheckAssertions random smallcheck stringQq terminfo - testFramework testFrameworkHunit testFrameworkSmallcheck text - utf8String vector - ]; - meta = { - homepage = "https://github.com/coreyoconnor/vty"; - description = "A simple terminal UI library"; - license = self.stdenv.lib.licenses.bsd3; - platforms = self.ghc.meta.platforms; - }; - doCheck = false; - jailbreak = true; -}) |