mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-23 07:26:54 +00:00
43 lines
1.6 KiB
Nix
43 lines
1.6 KiB
Nix
{ 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 = "20161102";
|
|
src = fetchFromGitHub {
|
|
owner = "sol";
|
|
repo = "tinc";
|
|
rev = "411d0f319717d01dc71bd5c1faef8035656eaf3d";
|
|
sha256 = "040vyg9n7ihnqs6fyhhr5p4xscfxhji02wsfw4nncpxflzaciji5";
|
|
};
|
|
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;
|
|
hydraPlatforms = stdenv.lib.platforms.none;
|
|
maintainers = [ stdenv.lib.maintainers.robbinch ];
|
|
}
|