cabal2nix: update to version 20150531
This update adds support for bash completion.
This commit is contained in:
parent
d780e48b31
commit
c55ca3fd0b
@ -2,16 +2,17 @@
|
|||||||
, deepseq, deepseq-generics, directory, doctest, filepath, gitMinimal
|
, deepseq, deepseq-generics, directory, doctest, filepath, gitMinimal
|
||||||
, hackage-db, hspec, lens, monad-par, monad-par-extras, mtl, pretty
|
, hackage-db, hspec, lens, monad-par, monad-par-extras, mtl, pretty
|
||||||
, process, QuickCheck, regex-posix, SHA, split, stdenv, transformers
|
, process, QuickCheck, regex-posix, SHA, split, stdenv, transformers
|
||||||
, utf8-string, cartel, nix-prefetch-scripts, makeWrapper
|
, utf8-string, cartel, nix-prefetch-scripts, optparse-applicative
|
||||||
|
, makeWrapper
|
||||||
}:
|
}:
|
||||||
|
|
||||||
mkDerivation rec {
|
mkDerivation rec {
|
||||||
pname = "cabal2nix";
|
pname = "cabal2nix";
|
||||||
version = "20150525";
|
version = "20150531";
|
||||||
src = fetchgit {
|
src = fetchgit {
|
||||||
url = "http://github.com/NixOS/cabal2nix.git";
|
url = "http://github.com/NixOS/cabal2nix.git";
|
||||||
rev = "a7998916868af0d09882468b3e43f5854082860f";
|
rev = "513a5fce6cfabe0b062424f6deb191a12f7e2187";
|
||||||
sha256 = "07bz2z4ramrs2dmvvf6a82fliq51m61c11vmhkkz31nr09l25k6y";
|
sha256 = "1j4x85cqj823d9swi473b4i9rz9wlm9m7c1il73h02dq5i67wida";
|
||||||
deepClone = true;
|
deepClone = true;
|
||||||
};
|
};
|
||||||
isExecutable = true;
|
isExecutable = true;
|
||||||
@ -21,6 +22,7 @@ mkDerivation rec {
|
|||||||
aeson base bytestring Cabal containers deepseq-generics directory
|
aeson base bytestring Cabal containers deepseq-generics directory
|
||||||
filepath hackage-db lens monad-par monad-par-extras mtl pretty
|
filepath hackage-db lens monad-par monad-par-extras mtl pretty
|
||||||
process regex-posix SHA split transformers utf8-string cartel
|
process regex-posix SHA split transformers utf8-string cartel
|
||||||
|
optparse-applicative
|
||||||
];
|
];
|
||||||
testDepends = [
|
testDepends = [
|
||||||
aeson base bytestring Cabal containers deepseq deepseq-generics
|
aeson base bytestring Cabal containers deepseq deepseq-generics
|
||||||
@ -35,6 +37,8 @@ mkDerivation rec {
|
|||||||
install -D $out/bin/cabal2nix $exe
|
install -D $out/bin/cabal2nix $exe
|
||||||
rm -rf $out/{bin,lib,share}
|
rm -rf $out/{bin,lib,share}
|
||||||
makeWrapper $exe $out/bin/cabal2nix --prefix PATH ":" "${nix-prefetch-scripts}/bin"
|
makeWrapper $exe $out/bin/cabal2nix --prefix PATH ":" "${nix-prefetch-scripts}/bin"
|
||||||
|
mkdir -p $out/share/bash-completion/completions
|
||||||
|
$exe --bash-completion-script $out/bin/cabal2nix >$out/share/bash-completion/completions/cabal2nix
|
||||||
'';
|
'';
|
||||||
homepage = "http://github.com/NixOS/cabal2nix/";
|
homepage = "http://github.com/NixOS/cabal2nix/";
|
||||||
description = "Convert Cabal files into Nix build instructions";
|
description = "Convert Cabal files into Nix build instructions";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user