diff options
author | obadz <dav-github@odav.org> | 2016-04-09 03:25:04 +0100 |
---|---|---|
committer | obadz <dav-github@odav.org> | 2016-04-11 15:24:56 +0100 |
commit | 7f2163fc97d422bf19f71f09f4c813e49b1fcc8e (patch) | |
tree | e5309dc00b6a8cefe80d1fd935550d5e2fdb7a6c /pkgs/development/tools/haskell/haste/haste-cabal-install.nix | |
parent | e8b3532d26c15f308c4b597128da8b3b9554e932 (diff) | |
download | nixlib-7f2163fc97d422bf19f71f09f4c813e49b1fcc8e.tar nixlib-7f2163fc97d422bf19f71f09f4c813e49b1fcc8e.tar.gz nixlib-7f2163fc97d422bf19f71f09f4c813e49b1fcc8e.tar.bz2 nixlib-7f2163fc97d422bf19f71f09f4c813e49b1fcc8e.tar.lz nixlib-7f2163fc97d422bf19f71f09f4c813e49b1fcc8e.tar.xz nixlib-7f2163fc97d422bf19f71f09f4c813e49b1fcc8e.tar.zst nixlib-7f2163fc97d422bf19f71f09f4c813e49b1fcc8e.zip |
haskellPackages.haste-compiler: fix so that it now builds and runs
Required adding: haskellPackages.haste-Cabal, and haskellPackages.haste-cabal-install
Diffstat (limited to 'pkgs/development/tools/haskell/haste/haste-cabal-install.nix')
-rw-r--r-- | pkgs/development/tools/haskell/haste/haste-cabal-install.nix | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/pkgs/development/tools/haskell/haste/haste-cabal-install.nix b/pkgs/development/tools/haskell/haste/haste-cabal-install.nix new file mode 100644 index 000000000000..dd140409173e --- /dev/null +++ b/pkgs/development/tools/haskell/haste/haste-cabal-install.nix @@ -0,0 +1,46 @@ +# Haste requires its own patched up version of cabal-install that's not on hackage +{ mkDerivation, array, base, bytestring, Cabal, containers +, directory, extensible-exceptions, filepath, HTTP, mtl, network +, network-uri, pretty, process, QuickCheck, random, regex-posix +, stdenv, stm, tagged, tasty, tasty-hunit, tasty-quickcheck, time +, unix, zlib +, fetchFromGitHub +}: + +mkDerivation { + pname = "cabal-install"; + version = "1.23.0.0"; + src = fetchFromGitHub { + owner = "valderman"; + repo = "cabal"; + rev = "a1962987ba32d5e20090830f50c6afdc78dae005"; + sha256 = "1gjmscfsikcvgkv6zricpfxvj23wxahndm784lg9cpxrc3pn5hvh"; + }; + isLibrary = false; + isExecutable = true; + executableHaskellDepends = [ + array base bytestring Cabal containers directory filepath HTTP mtl + network network-uri pretty process random stm time unix zlib + ]; + testHaskellDepends = [ + array base bytestring Cabal containers directory + extensible-exceptions filepath HTTP mtl network network-uri pretty + process QuickCheck random regex-posix stm tagged tasty tasty-hunit + tasty-quickcheck time unix zlib + ]; + prePatch = '' + rm -rf Cabal + cd cabal-install + ''; + postInstall = '' + mkdir $out/etc + mv bash-completion $out/etc/bash_completion.d + + # Manually added by Nix maintainer + mv -v $out/etc/bash_completion.d/cabal $out/etc/bash_completion.d/haste-cabal + ''; + doCheck = false; + homepage = "http://www.haskell.org/cabal/"; + description = "The command-line interface for Cabal and Hackage"; + license = stdenv.lib.licenses.bsd3; +} |