diff options
author | Peter Simons <simons@cryp.to> | 2016-07-05 22:49:26 +0200 |
---|---|---|
committer | Peter Simons <simons@cryp.to> | 2016-07-05 23:45:41 +0200 |
commit | 6a6b8fa36fa21a8163e47d948ff79c50cbad2a78 (patch) | |
tree | 8d3da4b008dd5bfd01689df9818a6294caf6190e /pkgs/development/tools/haskell | |
parent | a828d79a8a896c1bfbbea18a00ac542218c06e4f (diff) | |
download | nixlib-6a6b8fa36fa21a8163e47d948ff79c50cbad2a78.tar nixlib-6a6b8fa36fa21a8163e47d948ff79c50cbad2a78.tar.gz nixlib-6a6b8fa36fa21a8163e47d948ff79c50cbad2a78.tar.bz2 nixlib-6a6b8fa36fa21a8163e47d948ff79c50cbad2a78.tar.lz nixlib-6a6b8fa36fa21a8163e47d948ff79c50cbad2a78.tar.xz nixlib-6a6b8fa36fa21a8163e47d948ff79c50cbad2a78.tar.zst nixlib-6a6b8fa36fa21a8163e47d948ff79c50cbad2a78.zip |
cabal2nix: update to version 2.0 from Hackage
I've realized that publishing updates to Hackage is far easier than publishing updates in Nixpkgs, and since all Hackage updates show up in Nix automatically I've decided to go back to publishing cabal2nix on Hackage again. Unfortunately, this means that I'll have to change the version numbering scheme to comply with the expectations of the Haskell PVP (which is used by Stackage), so the new version 2.0 looks like a downgrade to Nix, which used to have version 20160406. :-( If in doubt, run "nix-env -u --always" to force the update. I am sorry about the inconvenience.
Diffstat (limited to 'pkgs/development/tools/haskell')
-rw-r--r-- | pkgs/development/tools/haskell/cabal2nix/default.nix | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/pkgs/development/tools/haskell/cabal2nix/default.nix b/pkgs/development/tools/haskell/cabal2nix/default.nix deleted file mode 100644 index 3e6c9019f6d6..000000000000 --- a/pkgs/development/tools/haskell/cabal2nix/default.nix +++ /dev/null @@ -1,45 +0,0 @@ -{ mkDerivation, aeson, ansi-wl-pprint, base, bytestring, Cabal -, containers, deepseq, directory, distribution-nixpkgs, fetchFromGitHub -, filepath, hackage-db, language-nix, lens, monad-par -, monad-par-extras, mtl, optparse-applicative, pretty, process, SHA -, split, stackage-types, stdenv, text, time, transformers -, utf8-string, yaml, makeWrapper, nix-prefetch-scripts -}: -mkDerivation rec { - pname = "cabal2nix"; - version = "20160613-10-g57dddc7"; - src = fetchFromGitHub { - owner = "nixos"; - repo = "cabal2nix"; - rev = "v${version}"; - sha256 = "1nlybd4im80dwq70wqa5k4lji5g353cn6aqiz4v3x4v3fpn2i3qb"; - }; - isExecutable = true; - enableSharedExecutables = false; - libraryHaskellDepends = [ - aeson ansi-wl-pprint base bytestring Cabal containers deepseq - directory distribution-nixpkgs filepath hackage-db language-nix - lens optparse-applicative pretty process SHA split text - transformers yaml - ]; - executableHaskellDepends = [ - aeson ansi-wl-pprint base bytestring Cabal containers deepseq - directory distribution-nixpkgs filepath hackage-db language-nix - lens monad-par monad-par-extras mtl optparse-applicative pretty - process SHA split stackage-types text time transformers utf8-string - yaml - ]; - executableToolDepends = [ makeWrapper ]; - postInstall = '' - exe=$out/libexec/${pname}-${version}/${pname} - install -D $out/bin/${pname} $exe - rm -rf $out/{bin,lib,share} - makeWrapper $exe $out/bin/${pname} --prefix PATH ":" "${nix-prefetch-scripts}/bin" - mkdir -p $out/share/bash-completion/completions - $exe --bash-completion-script $exe >$out/share/bash-completion/completions/${pname} - ''; - homepage = "https://github.com/nixos/cabal2nix#readme"; - description = "Convert Cabal files into Nix build instructions"; - license = stdenv.lib.licenses.bsd3; - maintainers = [stdenv.lib.maintainers.peti]; -} |