mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-05 13:23:17 +00:00
f0e64ce16f
Manual migration for the sake of by-name migration is no longer discouraged since #340235.
51 lines
975 B
Nix
51 lines
975 B
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, autoconf
|
|
, makeWrapper
|
|
, python3Packages
|
|
, runtimeShell
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "argbash";
|
|
version = "2.10.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "matejak";
|
|
repo = "argbash";
|
|
rev = finalAttrs.version;
|
|
hash = "sha256-G739q6OhsXEldpIxiyOU51AmG4RChMqaN1t2wOy6sPU=";
|
|
};
|
|
|
|
postPatch = ''
|
|
patchShebangs .
|
|
substituteInPlace resources/Makefile \
|
|
--replace '/bin/bash' "${runtimeShell}"
|
|
'';
|
|
|
|
nativeBuildInputs = [
|
|
autoconf
|
|
makeWrapper
|
|
python3Packages.docutils
|
|
];
|
|
|
|
makeFlags = [
|
|
"-C" "resources"
|
|
"PREFIX=$(out)"
|
|
];
|
|
|
|
postInstall = ''
|
|
wrapProgram $out/bin/argbash \
|
|
--prefix PATH : '${autoconf}/bin'
|
|
'';
|
|
|
|
meta = {
|
|
homepage = "https://argbash.io/";
|
|
description = "Bash argument parsing code generator";
|
|
license = lib.licenses.bsd3;
|
|
maintainers = with lib.maintainers; [ AndersonTorres ];
|
|
platforms = lib.platforms.all;
|
|
};
|
|
})
|