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,39 @@
|
|||
{ lib, stdenv, git, xdg-utils, gnugrep, fetchFromGitHub, installShellFiles, makeWrapper, pandoc }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "git-open";
|
||||
version = "2.1.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "paulirish";
|
||||
repo = "git-open";
|
||||
rev = "v${version}";
|
||||
sha256 = "11n46bngvca5wbdbfcxzjhjbfdbad7sgf7h9gf956cb1q8swsdm0";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ installShellFiles makeWrapper pandoc ];
|
||||
|
||||
buildPhase = ''
|
||||
# marked-man is broken and severly outdated.
|
||||
# pandoc with some extra metadata is good enough and produces a by man readable file.
|
||||
cat <(echo echo '% git-open (1) Version ${version} | Git manual') git-open.1.md > tmp
|
||||
mv tmp git-open.1.md
|
||||
pandoc --standalone --to man git-open.1.md -o git-open.1
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
cp git-open $out/bin
|
||||
installManPage git-open.1
|
||||
wrapProgram $out/bin/git-open \
|
||||
--prefix PATH : "${lib.makeBinPath [ git xdg-utils gnugrep ]}"
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/paulirish/git-open";
|
||||
description = "Open the GitHub page or website for a repository in your browser";
|
||||
license = licenses.mit;
|
||||
platforms = platforms.all;
|
||||
maintainers = with maintainers; [ jlesquembre SuperSandro2000 ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue