mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-09-11 15:08:33 +01:00
Merge pull request #279997 from ShamrockLee/optparse-bash-drop
optparse-bash: drop
This commit is contained in:
commit
295de1fecf
|
@ -138,6 +138,9 @@ The pre-existing [services.ankisyncd](#opt-services.ankisyncd.enable) has been m
|
|||
'';
|
||||
|
||||
```
|
||||
|
||||
- The package `optparse-bash` is now dropped due to upstream inactivity. Alternatives available in Nixpkgs include [`argc`](https://github.com/sigoden/argc), [`argbash`](https://github.com/matejak/argbash), [`bashly`](https://github.com/DannyBen/bashly) and [`gum`](https://github.com/charmbracelet/gum), to name a few.
|
||||
|
||||
- The `kanata` package has been updated to v1.5.0, which includes [breaking changes](https://github.com/jtroo/kanata/releases/tag/v1.5.0).
|
||||
|
||||
- The `craftos-pc` package has been updated to v2.8, which includes [breaking changes](https://github.com/MCJack123/craftos2/releases/tag/v2.8).
|
||||
|
|
|
@ -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 ];
|
||||
};
|
||||
}
|
|
@ -789,6 +789,7 @@ mapAliases ({
|
|||
openmpt123 = libopenmpt; # Added 2021-09-05
|
||||
openssl_3_0 = openssl_3; # Added 2022-06-27
|
||||
openvpn_24 = throw "openvpn_24 has been removed, because it went EOL. 2.5.x or newer is still available"; # Added 2023-01-23
|
||||
optparse-bash = throw "'optparse-bash' (GitHub: nk412/optparse) has been removed. Use 'argparse' instead"; # Added 2024-01-12
|
||||
orchis = orchis-theme; # Added 2021-06-09
|
||||
oni2 = throw "oni2 was removed, because it is unmaintained and was abandoned years ago."; #Added 2024-01-15
|
||||
oroborus = throw "oroborus was removed, because it was abandoned years ago."; #Added 2023-09-10
|
||||
|
|
|
@ -24335,8 +24335,6 @@ with pkgs;
|
|||
buildPythonPackage buildPythonApplication setuptools pycsdr pydigiham;
|
||||
};
|
||||
|
||||
optparse-bash = callPackage ../development/libraries/optparse-bash { };
|
||||
|
||||
oras = callPackage ../development/tools/oras { };
|
||||
|
||||
orcania = callPackage ../development/libraries/orcania { };
|
||||
|
|
Loading…
Reference in a new issue