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
36
pkgs/development/compilers/jrsonnet/default.nix
Normal file
36
pkgs/development/compilers/jrsonnet/default.nix
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
{ stdenv, lib, fetchFromGitHub, rustPlatform, installShellFiles }:
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "jrsonnet";
|
||||
version = "0.4.2";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
rev = "v${version}";
|
||||
owner = "CertainLach";
|
||||
repo = "jrsonnet";
|
||||
sha256 = "sha256-OX+iJJ3vdCsWWr8x31psV9Vne6xWDZnJc83NbJqMK1A=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ installShellFiles ];
|
||||
|
||||
postInstall = ''
|
||||
ln -s $out/bin/jrsonnet $out/bin/jsonnet
|
||||
|
||||
for shell in bash zsh fish; do
|
||||
installShellCompletion --cmd jrsonnet \
|
||||
--$shell <($out/bin/jrsonnet --generate $shell /dev/null)
|
||||
installShellCompletion --cmd jsonnet \
|
||||
--$shell <($out/bin/jrsonnet --generate $shell /dev/null | sed s/jrsonnet/jsonnet/g)
|
||||
done
|
||||
'';
|
||||
|
||||
cargoSha256 = "sha256-eFfAU9Q3nYAJK+kKP1Y6ONjOIfkuYTlelrFrEW9IJ8c=";
|
||||
|
||||
meta = {
|
||||
description = "Purely-functional configuration language that helps you define JSON data";
|
||||
maintainers = with lib.maintainers; [ lach ];
|
||||
license = lib.licenses.mit;
|
||||
homepage = "https://github.com/CertainLach/jrsonnet";
|
||||
broken = stdenv.isDarwin; # never built on Hydra https://hydra.nixos.org/job/nixpkgs/trunk/jrsonnet.x86_64-darwin
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue