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
40
pkgs/development/tools/scry/default.nix
Normal file
40
pkgs/development/tools/scry/default.nix
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
{ lib, fetchFromGitHub, crystal, coreutils, makeWrapper, bash }:
|
||||
|
||||
crystal.buildCrystalPackage rec {
|
||||
pname = "scry";
|
||||
version = "0.9.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "crystal-lang-tools";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-hqyG1aKY3M8q8lZEKzpUUKl9jS7NF+VMsma6+C0sCbg=";
|
||||
};
|
||||
|
||||
# a bunch of tests fail when built in the sandbox while perfectly fine outside
|
||||
postPatch = ''
|
||||
rm spec/scry/{client,completion_provider,context,executable}_spec.cr
|
||||
'';
|
||||
|
||||
format = "shards";
|
||||
|
||||
nativeBuildInputs = [ makeWrapper ];
|
||||
buildInputs = [ bash ];
|
||||
|
||||
shardsFile = ./shards.nix;
|
||||
|
||||
postFixup = ''
|
||||
wrapProgram $out/bin/scry \
|
||||
--prefix PATH : ${lib.makeBinPath [ crystal coreutils ]}
|
||||
'';
|
||||
|
||||
# the binary doesn't take any arguments, so this will hang
|
||||
doInstallCheck = false;
|
||||
|
||||
meta = with lib; {
|
||||
description = "Code analysis server for the Crystal programming language";
|
||||
homepage = "https://github.com/crystal-lang-tools/scry";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ peterhoeg Br1ght0ne ];
|
||||
};
|
||||
}
|
||||
14
pkgs/development/tools/scry/shards.nix
Normal file
14
pkgs/development/tools/scry/shards.nix
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
{
|
||||
json_mapping = {
|
||||
owner = "crystal-lang";
|
||||
repo = "json_mapping.cr";
|
||||
rev = "v0.1.0";
|
||||
sha256 = "1qq5vs2085x7cwmp96rrjns0yz9kiz1lycxynfbz5psxll6b8p55";
|
||||
};
|
||||
lsp = {
|
||||
owner = "crystal-lang-tools";
|
||||
repo = "lsp";
|
||||
rev = "v0.2.0";
|
||||
sha256 = "1lnviqrywh0w05mx67mzw7d1qz328p52z4k69pcqw66gs44i7b5c";
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue