about summary refs log tree commit diff
path: root/pkgs/development/tools/haskell
diff options
context:
space:
mode:
authorPeter Simons <simons@cryp.to>2016-04-24 20:12:23 +0200
committerPeter Simons <simons@cryp.to>2016-04-24 20:13:27 +0200
commitcf4a69e2ec73c5abf5812e20a558bf45b9646e56 (patch)
tree47caa03482f19147524c14e6595ef825a967e572 /pkgs/development/tools/haskell
parent9eb107dc52409c5f438402eadf48b5dcd64da6ac (diff)
downloadnixlib-cf4a69e2ec73c5abf5812e20a558bf45b9646e56.tar
nixlib-cf4a69e2ec73c5abf5812e20a558bf45b9646e56.tar.gz
nixlib-cf4a69e2ec73c5abf5812e20a558bf45b9646e56.tar.bz2
nixlib-cf4a69e2ec73c5abf5812e20a558bf45b9646e56.tar.lz
nixlib-cf4a69e2ec73c5abf5812e20a558bf45b9646e56.tar.xz
nixlib-cf4a69e2ec73c5abf5812e20a558bf45b9646e56.tar.zst
nixlib-cf4a69e2ec73c5abf5812e20a558bf45b9646e56.zip
haskell-tinc: move the tool into the haskellPackages hierarchy like all other Haskell packages
Diffstat (limited to 'pkgs/development/tools/haskell')
-rw-r--r--pkgs/development/tools/haskell/tinc/default.nix41
1 files changed, 41 insertions, 0 deletions
diff --git a/pkgs/development/tools/haskell/tinc/default.nix b/pkgs/development/tools/haskell/tinc/default.nix
new file mode 100644
index 000000000000..44491fa0ef98
--- /dev/null
+++ b/pkgs/development/tools/haskell/tinc/default.nix
@@ -0,0 +1,41 @@
+{ mkDerivation, aeson, base, bytestring, Cabal, containers
+, directory, exceptions, filelock, filepath, gitrev, graph-wrapper
+, hpack, hspec, HUnit, language-dot, mockery, parsec, process
+, QuickCheck, safe, stdenv, temporary, time, transformers, unix
+, unix-compat, with-location, yaml, fetchFromGitHub
+, ghc, cabal2nix, cabal-install, makeWrapper
+}:
+mkDerivation {
+  pname = "tinc";
+  version = "20160419";
+  src = fetchFromGitHub {
+    owner = "sol";
+    repo = "tinc";
+    rev = "b9f7cc1076098b1f99f20655052c9fd34598d891";
+    sha256 = "1f0k7a4vxdd2cd2h5qwska9hfw7ig6q2rx87d09fg2xlix96g81r";
+  };
+  isLibrary = false;
+  isExecutable = true;
+  executableHaskellDepends = [
+    aeson base bytestring Cabal containers directory exceptions
+    filelock filepath gitrev graph-wrapper hpack language-dot parsec
+    process temporary time transformers unix-compat with-location yaml
+  ];
+  testHaskellDepends = [
+    aeson base bytestring Cabal containers directory exceptions
+    filelock filepath gitrev graph-wrapper hpack hspec HUnit
+    language-dot mockery parsec process QuickCheck safe temporary time
+    transformers unix unix-compat with-location yaml
+  ];
+  postInstall = ''
+    source ${makeWrapper}/nix-support/setup-hook
+    wrapProgram $out/bin/tinc \
+      --prefix PATH : '${ghc}/bin' \
+      --prefix PATH : '${cabal2nix}/bin' \
+      --prefix PATH : '${cabal-install}/bin'
+  '';
+  description = "A dependency manager for Haskell";
+  homepage = "https://github.com/sol/tinc#readme";
+  license = stdenv.lib.licenses.mit;
+  maintainers = [ stdenv.lib.maintainers.robbinch ];
+}