uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
52
pkgs/applications/version-management/gitolite/default.nix
Normal file
52
pkgs/applications/version-management/gitolite/default.nix
Normal file
|
|
@ -0,0 +1,52 @@
|
|||
{ stdenv, fetchFromGitHub, git, lib, makeWrapper, nettools, perl, perlPackages, nixosTests }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "gitolite";
|
||||
version = "3.6.12";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "sitaramc";
|
||||
repo = "gitolite";
|
||||
rev = "v${version}";
|
||||
sha256 = "05xw1pmagvkrbzga5pgl3xk9qyc6b5x73f842454f3w9ijspa8zy";
|
||||
};
|
||||
|
||||
buildInputs = [ nettools perl ];
|
||||
nativeBuildInputs = [ makeWrapper ];
|
||||
propagatedBuildInputs = [ git ];
|
||||
|
||||
dontBuild = true;
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace ./install --replace " 2>/dev/null" ""
|
||||
substituteInPlace src/lib/Gitolite/Hooks/PostUpdate.pm \
|
||||
--replace /usr/bin/perl "${perl}/bin/perl"
|
||||
substituteInPlace src/lib/Gitolite/Hooks/Update.pm \
|
||||
--replace /usr/bin/perl "${perl}/bin/perl"
|
||||
substituteInPlace src/lib/Gitolite/Setup.pm \
|
||||
--replace hostname "${nettools}/bin/hostname"
|
||||
'';
|
||||
|
||||
postFixup = ''
|
||||
wrapProgram $out/bin/gitolite-shell \
|
||||
--prefix PATH : ${lib.makeBinPath [ git (perl.withPackages (p: [ p.JSON ])) ]}
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
perl ./install -to $out/bin
|
||||
echo ${version} > $out/bin/VERSION
|
||||
'';
|
||||
|
||||
passthru.tests = {
|
||||
gitolite = nixosTests.gitolite;
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
description = "Finely-grained git repository hosting";
|
||||
homepage = "https://gitolite.com/gitolite/index.html";
|
||||
license = licenses.gpl2;
|
||||
platforms = platforms.unix;
|
||||
maintainers = [ maintainers.thoughtpolice maintainers.lassulus maintainers.tomberek ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue