fork
Configure Feed
Select the types of activity you want to include in your feed.
lol
fork
Configure Feed
Select the types of activity you want to include in your feed.
1{ lib
2, stdenv
3, fetchFromGitHub
4, autoconf
5, makeWrapper
6, python3Packages
7, runtimeShell
8}:
9
10stdenv.mkDerivation (finalAttrs: {
11 pname = "argbash";
12 version = "2.10.0";
13
14 src = fetchFromGitHub {
15 owner = "matejak";
16 repo = "argbash";
17 rev = finalAttrs.version;
18 hash = "sha256-G739q6OhsXEldpIxiyOU51AmG4RChMqaN1t2wOy6sPU=";
19 };
20
21 postPatch = ''
22 patchShebangs .
23 substituteInPlace resources/Makefile \
24 --replace '/bin/bash' "${runtimeShell}"
25 '';
26
27 nativeBuildInputs = [
28 autoconf
29 makeWrapper
30 python3Packages.docutils
31 ];
32
33 makeFlags = [
34 "-C" "resources"
35 "PREFIX=$(out)"
36 ];
37
38 postInstall = ''
39 wrapProgram $out/bin/argbash \
40 --prefix PATH : '${autoconf}/bin'
41 '';
42
43 meta = {
44 homepage = "https://argbash.io/";
45 description = "Bash argument parsing code generator";
46 license = lib.licenses.bsd3;
47 maintainers = with lib.maintainers; [ AndersonTorres ];
48 platforms = lib.platforms.all;
49 };
50})