Luke Granger-Brown
57725ef3ec
git-subtree-dir: third_party/nixpkgs git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
46 lines
1 KiB
Nix
46 lines
1 KiB
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, coreutils
|
|
, findutils
|
|
, gitMinimal
|
|
, gnugrep
|
|
, gnused
|
|
, makeWrapper
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "helm-git";
|
|
version = "1.3.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "aslafy-z";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-o9y1C4O1uG2Z7f3kCEoK1tSmSuQh1zJxB/CZBv/GPus=";
|
|
};
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
# NOTE: helm-git is comprised of shell scripts.
|
|
dontBuild = true;
|
|
|
|
installPhase = ''
|
|
install -dm755 $out/helm-git
|
|
install -m644 -Dt $out/helm-git plugin.yaml
|
|
cp helm-git helm-git-plugin.sh $out/helm-git/
|
|
|
|
patchShebangs $out/helm-git/helm-git{,-plugin.sh}
|
|
wrapProgram $out/helm-git/helm-git \
|
|
--prefix PATH : ${lib.makeBinPath [ coreutils findutils gitMinimal gnugrep gnused ]}
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Helm downloader plugin that provides GIT protocol support";
|
|
homepage = "https://github.com/aslafy-z/helm-git";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ flokli ];
|
|
};
|
|
}
|