nixpkgs/pkgs/tools/package-management/cabal-install/1.16.0.2.nix

30 lines
924 B
Nix

# This file was auto-generated by cabal2nix. Please do NOT edit manually!
{ cabal, Cabal, filepath, HTTP, mtl, network, random, time, zlib }:
cabal.mkDerivation (self: {
pname = "cabal-install";
version = "1.16.0.2";
sha256 = "162nbkkffpbalg368m5s49jrvg9nibdwlwj0j1b8wriyyg4srpv6";
isLibrary = false;
isExecutable = true;
buildDepends = [
Cabal filepath HTTP mtl network random time zlib
];
postInstall = ''
mkdir $out/etc
mv bash-completion $out/etc/bash_completion.d
'';
patchPhase = ''
sed -i -e 's|random .*1.1,|random,|' cabal-install.cabal
'';
meta = {
homepage = "http://www.haskell.org/cabal/";
description = "The command-line interface for Cabal and Hackage";
license = self.stdenv.lib.licenses.bsd3;
platforms = self.ghc.meta.platforms;
hydraPlatforms = self.stdenv.lib.platforms.none;
maintainers = [ self.stdenv.lib.maintainers.andres ];
};
})