diff options
author | Yueh-Shun Li <shamrocklee@posteo.net> | 2024-01-10 16:57:55 +0800 |
---|---|---|
committer | Yueh-Shun Li <shamrocklee@posteo.net> | 2024-01-13 05:54:58 +0000 |
commit | d1c42ac35002abd3d751438a59f55cc5f6523f8b (patch) | |
tree | aeca36cc8732edf1c2ccf77a2e5dee99f83aa46d /pkgs/development/libraries | |
parent | a9412aa692113aa3f9407e6f927aa74d1a8222a3 (diff) | |
download | nixlib-d1c42ac35002abd3d751438a59f55cc5f6523f8b.tar nixlib-d1c42ac35002abd3d751438a59f55cc5f6523f8b.tar.gz nixlib-d1c42ac35002abd3d751438a59f55cc5f6523f8b.tar.bz2 nixlib-d1c42ac35002abd3d751438a59f55cc5f6523f8b.tar.lz nixlib-d1c42ac35002abd3d751438a59f55cc5f6523f8b.tar.xz nixlib-d1c42ac35002abd3d751438a59f55cc5f6523f8b.tar.zst nixlib-d1c42ac35002abd3d751438a59f55cc5f6523f8b.zip |
optparse-bash: drop
Drop because - it seems abandoned by the upstream years ago[1]. - there are quite some nice alternatives[2] already available in Nixpkgs. [1]: https://github.com/nk412/optparse/commits/master/ [2]: https://github.com/shadawck/awesome-cli-frameworks#bashshell Co-authored-by: Anderson Torres <torres.anderson.85@protonmail.com>
Diffstat (limited to 'pkgs/development/libraries')
-rw-r--r-- | pkgs/development/libraries/optparse-bash/default.nix | 63 |
1 files changed, 0 insertions, 63 deletions
diff --git a/pkgs/development/libraries/optparse-bash/default.nix b/pkgs/development/libraries/optparse-bash/default.nix deleted file mode 100644 index f14512c5272a..000000000000 --- a/pkgs/development/libraries/optparse-bash/default.nix +++ /dev/null @@ -1,63 +0,0 @@ -{ stdenvNoCC -, lib -, fetchFromGitHub -, bash -, gnused -, gawk -, coreutils -}: - -stdenvNoCC.mkDerivation { - pname = "optparse-bash-unstable"; - version = "2021-06-13"; - - src = fetchFromGitHub { - owner = "nk412"; - repo = "optparse"; - rev = "d86ec17d15368e5b54eb2d47b001b0b61d68bbd0"; - sha256 = "sha256-vs7Jo1+sV0tPse4Wu2xtzSX1IkahwLgO3e4Riz3uMmI="; - }; - - postPatch = '' - substituteInPlace optparse.bash \ - --replace sed "${gnused}/bin/sed" \ - --replace awk "${gawk}/bin/awk" \ - --replace printf "${coreutils}/bin/printf" -''; - - dontBuild = true; - - doCheck = true; - - nativeCheckInputs = [ bash ]; - - # `#!/usr/bin/env` isn't okay for OfBorg - # Need external bash to run - checkPhase = '' - runHook preCheck - bash ./sample_head.sh -v --file README.md - runHook postCheck - ''; - - installPhase = '' - runHook preInstall - mkdir -p $out/bin - mv optparse.bash $out/bin/ - mkdir -p $out/share/doc/optparse-bash - mv README.md sample_head.sh $out/share/doc/optparse-bash/ - runHook postInstall - ''; - - # As example code, - # sample_head.sh shows how users can use opt-parse in their script, - # and its shebang (`/usr/bin/env bash`) should not be patched. - dontPatchShebangs = true; - - meta = with lib; { - description = "A BASH wrapper for getopts, for simple command-line argument parsing"; - homepage = "https://github.com/nk412/optparse"; - license = licenses.mit; - platforms = platforms.all; - maintainers = with maintainers; [ ShamrockLee ]; - }; -} |