mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 15:33:13 +00:00
755b915a15
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \ | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
31 lines
686 B
Nix
31 lines
686 B
Nix
{ stdenvNoCC, lib, fetchFromGitHub }:
|
|
|
|
stdenvNoCC.mkDerivation rec {
|
|
pname = "fet-sh";
|
|
version = "1.9";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "6gk";
|
|
repo = "fet.sh";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-xhX2nVteC3T3IjQh++mYlm0btDJQbyQa6b8sGualV0E=";
|
|
};
|
|
|
|
postPatch = ''
|
|
patchShebangs fet.sh
|
|
'';
|
|
|
|
installPhase = ''
|
|
install -m755 -D fet.sh $out/bin/fet.sh
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Fetch written in posix shell without any external commands";
|
|
homepage = "https://github.com/6gk/fet.sh";
|
|
license = licenses.isc;
|
|
platforms = platforms.all;
|
|
maintainers = with maintainers; [ elkowar ];
|
|
mainProgram = "fet.sh";
|
|
};
|
|
}
|