about summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorPeter Simons <simons@cryp.to>2016-04-22 17:08:42 +0200
committerPeter Simons <simons@cryp.to>2016-04-22 17:08:42 +0200
commitc604efecfc2eb61dfb11dc1d5e80f417c6810578 (patch)
treec55138001b73f4d90c54d8d21518b8961250a700 /pkgs
parent33d9233921dde1a5fa9678244a665d74275c1e89 (diff)
parentf1492bf44c839f5d7ba9d809ea71b4e4fb3f08bc (diff)
downloadnixlib-c604efecfc2eb61dfb11dc1d5e80f417c6810578.tar
nixlib-c604efecfc2eb61dfb11dc1d5e80f417c6810578.tar.gz
nixlib-c604efecfc2eb61dfb11dc1d5e80f417c6810578.tar.bz2
nixlib-c604efecfc2eb61dfb11dc1d5e80f417c6810578.tar.lz
nixlib-c604efecfc2eb61dfb11dc1d5e80f417c6810578.tar.xz
nixlib-c604efecfc2eb61dfb11dc1d5e80f417c6810578.tar.zst
nixlib-c604efecfc2eb61dfb11dc1d5e80f417c6810578.zip
Merge pull request #14873 from robbinch/pkg-tinc-haskell
tinc-haskell: init at 20160419
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/development/tools/misc/tinc/default.nix41
-rw-r--r--pkgs/top-level/all-packages.nix2
2 files changed, 43 insertions, 0 deletions
diff --git a/pkgs/development/tools/misc/tinc/default.nix b/pkgs/development/tools/misc/tinc/default.nix
new file mode 100644
index 000000000000..44491fa0ef98
--- /dev/null
+++ b/pkgs/development/tools/misc/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 ];
+}
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index 23973250a4eb..d5ce66d56b9a 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -6302,6 +6302,8 @@ in
 
   texi2html = callPackage ../development/tools/misc/texi2html { };
 
+  tinc-haskell = haskellPackages.callPackage ../development/tools/misc/tinc { };
+
   travis = callPackage ../development/tools/misc/travis { };
 
   tweak = callPackage ../applications/editors/tweak { };