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
|
|
@ -0,0 +1,38 @@
|
|||
{ lib, stdenv, fetchFromGitHub, ruby, makeWrapper, git }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "svn2git";
|
||||
version = "2.4.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "nirvdrum";
|
||||
repo = "svn2git";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-w649l/WO68vYYxZOBKzI8XhGFkaSwWx/O3oVOtnGg6w=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ ruby makeWrapper ];
|
||||
|
||||
dontBuild = true;
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out
|
||||
cp -r lib $out/
|
||||
|
||||
mkdir -p $out/bin
|
||||
substituteInPlace bin/svn2git --replace '/usr/bin/env ruby' ${ruby}/bin/ruby
|
||||
cp bin/svn2git $out/bin/
|
||||
chmod +x $out/bin/svn2git
|
||||
|
||||
wrapProgram $out/bin/svn2git \
|
||||
--set RUBYLIB $out/lib \
|
||||
--prefix PATH : ${git}/bin
|
||||
'';
|
||||
|
||||
meta = {
|
||||
homepage = "https://github.com/nirvdrum/svn2git";
|
||||
description = "Tool for importing Subversion repositories into git";
|
||||
license = lib.licenses.mit;
|
||||
platforms = lib.platforms.unix;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue