My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/pkgs/tools/misc/fet-sh/default.nix

30 lines
688 B

{ 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 = "A 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";
};
}