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
35
pkgs/development/tools/jbake/default.nix
Normal file
35
pkgs/development/tools/jbake/default.nix
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
{ lib, stdenv, fetchzip, makeWrapper, jre }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
version = "2.6.5";
|
||||
pname = "jbake";
|
||||
|
||||
src = fetchzip {
|
||||
url = "https://dl.bintray.com/jbake/binary/${pname}-${version}-bin.zip";
|
||||
sha256 = "0ripayv1vf4f4ylxr7h9kad2xhy3y98ca8s4p38z7dn8l47zg0qw";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ makeWrapper ];
|
||||
buildInputs = [ jre ];
|
||||
|
||||
postPatch = "patchShebangs .";
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out
|
||||
cp -vr * $out
|
||||
wrapProgram $out/bin/jbake --set JAVA_HOME "${jre}"
|
||||
'';
|
||||
|
||||
checkPhase = ''
|
||||
export JAVA_HOME=${jre}
|
||||
bin/jbake | grep -q "${version}" || (echo "jbake did not return correct version"; exit 1)
|
||||
'';
|
||||
doCheck = true;
|
||||
|
||||
meta = with lib; {
|
||||
description = "Java based, open source, static site/blog generator for developers & designers";
|
||||
homepage = "https://jbake.org/";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ moaxcp ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue