parent
c0a3fd18ca
commit
fdfbd17b70
@ -0,0 +1,21 @@ |
||||
{ mkDerivation, ansi-wl-pprint, base, fetchgit, lib, process, QuickCheck |
||||
, transformers, transformers-compat |
||||
}: |
||||
mkDerivation { |
||||
pname = "hercules-ci-optparse-applicative"; |
||||
version = "0.16.1.0"; |
||||
src = fetchgit { |
||||
url = "https://github.com/hercules-ci/optparse-applicative.git"; |
||||
sha256 = "0v0r11jaav95im82if976256kncp0ji7nfdrlpbgmwxnkj1hxl48"; |
||||
rev = "f9d1242f9889d2e09ff852db9dc2d231d9a3e8d8"; |
||||
fetchSubmodules = true; |
||||
}; |
||||
libraryHaskellDepends = [ |
||||
ansi-wl-pprint base process transformers transformers-compat |
||||
]; |
||||
testHaskellDepends = [ base QuickCheck ]; |
||||
homepage = "https://github.com/hercules-ci/optparse-applicative"; |
||||
description = "Utilities and combinators for parsing command line options (fork)"; |
||||
license = lib.licenses.bsd3; |
||||
maintainers = with lib.maintainers; [ roberth ]; |
||||
} |
@ -0,0 +1,23 @@ |
||||
{ haskell, haskellPackages, lib, makeWrapper, runc, stdenv }: |
||||
let |
||||
inherit (haskell.lib) overrideCabal addBuildDepends; |
||||
inherit (lib) makeBinPath; |
||||
bundledBins = lib.optional stdenv.isLinux runc; |
||||
|
||||
pkg = |
||||
# justStaticExecutables is needed due to https://github.com/NixOS/nix/issues/2990 |
||||
overrideCabal |
||||
(addBuildDepends (haskell.lib.justStaticExecutables haskellPackages.hercules-ci-cli) [ makeWrapper ]) |
||||
(o: { |
||||
postInstall = '' |
||||
${o.postInstall or ""} |
||||
mkdir -p $out/libexec |
||||
mv $out/bin/hci $out/libexec |
||||
makeWrapper $out/libexec/hci $out/bin/hci --prefix PATH : ${makeBinPath bundledBins} |
||||
''; |
||||
}); |
||||
in pkg // { |
||||
meta = pkg.meta // { |
||||
position = toString ./default.nix + ":1"; |
||||
}; |
||||
} |
Loading…
Reference in new issue