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