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
47
pkgs/development/compilers/jsonnet/default.nix
Normal file
47
pkgs/development/compilers/jsonnet/default.nix
Normal file
|
|
@ -0,0 +1,47 @@
|
|||
{ stdenv, lib, jekyll, fetchFromGitHub }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "jsonnet";
|
||||
version = "0.18.0";
|
||||
outputs = ["out" "doc"];
|
||||
|
||||
src = fetchFromGitHub {
|
||||
rev = "v${version}";
|
||||
owner = "google";
|
||||
repo = "jsonnet";
|
||||
sha256 = "sha256-RmuvpKv9Dg3JcxsdZDBMehJjG5SvrV0spHgxApFeuJo=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ jekyll ];
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
makeFlags = [
|
||||
"jsonnet"
|
||||
"jsonnetfmt"
|
||||
"libjsonnet.so"
|
||||
];
|
||||
|
||||
# Upstream writes documentation in html, not in markdown/rst, so no
|
||||
# other output formats, sorry.
|
||||
preBuild = ''
|
||||
jekyll build --source ./doc --destination ./html
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin $out/lib $out/include $out/share/doc/jsonnet
|
||||
cp jsonnet $out/bin/
|
||||
cp jsonnetfmt $out/bin/
|
||||
cp libjsonnet*.so $out/lib/
|
||||
cp -a include/*.h $out/include/
|
||||
cp -r ./html $out/share/doc/jsonnet
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "Purely-functional configuration language that helps you define JSON data";
|
||||
maintainers = with lib.maintainers; [ benley copumpkin ];
|
||||
license = lib.licenses.asl20;
|
||||
homepage = "https://github.com/google/jsonnet";
|
||||
platforms = lib.platforms.unix;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue