nixpkgs/pkgs/tools/misc/fet-sh/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

31 lines
688 B
Nix
Raw Normal View History

2020-08-18 20:46:57 +00:00
{ stdenvNoCC, lib, fetchFromGitHub }:
stdenvNoCC.mkDerivation rec {
pname = "fet-sh";
2021-03-22 08:20:59 +00:00
version = "1.9";
2020-08-18 20:46:57 +00:00
src = fetchFromGitHub {
owner = "6gk";
repo = "fet.sh";
rev = "v${version}";
2021-03-22 08:20:59 +00:00
sha256 = "sha256-xhX2nVteC3T3IjQh++mYlm0btDJQbyQa6b8sGualV0E=";
2020-08-18 20:46:57 +00:00
};
2021-03-22 08:20:59 +00:00
postPatch = ''
patchShebangs fet.sh
'';
2020-08-18 20:46:57 +00:00
installPhase = ''
2021-03-22 08:20:59 +00:00
install -m755 -D fet.sh $out/bin/fet.sh
2020-08-18 20:46:57 +00:00
'';
meta = with lib; {
2021-03-22 08:20:59 +00:00
description = "A fetch written in posix shell without any external commands";
2020-08-18 20:46:57 +00:00
homepage = "https://github.com/6gk/fet.sh";
license = licenses.isc;
2021-03-22 08:20:59 +00:00
platforms = platforms.all;
2020-08-18 20:46:57 +00:00
maintainers = with maintainers; [ elkowar ];
2021-10-08 19:49:49 +00:00
mainProgram = "fet.sh";
2020-08-18 20:46:57 +00:00
};
}