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 ];
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|