depot/third_party/nixpkgs/pkgs/tools/misc/fet-sh/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

30 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";
};
}