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
39
pkgs/development/interpreters/rakudo/nqp.nix
Normal file
39
pkgs/development/interpreters/rakudo/nqp.nix
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
{ stdenv, fetchurl, perl, lib, moarvm }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "nqp";
|
||||
version = "2022.03";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/raku/nqp/releases/download/${version}/nqp-${version}.tar.gz";
|
||||
sha256 = "sha256-qV53iXDE0JwJHSqimcBQNiCM5LSw06evNzGYwSJYswY=";
|
||||
};
|
||||
|
||||
buildInputs = [ perl ];
|
||||
|
||||
configureScript = "${perl}/bin/perl ./Configure.pl";
|
||||
|
||||
# Fix for issue where nqp expects to find files from moarvm in the same output:
|
||||
# https://github.com/Raku/nqp/commit/e6e069507de135cc71f77524455fc6b03b765b2f
|
||||
#
|
||||
preBuild = ''
|
||||
share_dir="share/nqp/lib/MAST"
|
||||
mkdir -p $out/$share_dir
|
||||
ln -fs ${moarvm}/$share_dir/{Nodes,Ops}.nqp $out/$share_dir
|
||||
'';
|
||||
|
||||
configureFlags = [
|
||||
"--backends=moar"
|
||||
"--with-moar=${moarvm}/bin/moar"
|
||||
];
|
||||
|
||||
doCheck = true;
|
||||
|
||||
meta = with lib; {
|
||||
description = "Not Quite Perl -- a lightweight Raku-like environment for virtual machines";
|
||||
homepage = "https://github.com/Raku/nqp";
|
||||
license = licenses.artistic2;
|
||||
platforms = platforms.unix;
|
||||
maintainers = with maintainers; [ thoughtpolice vrthra sgo ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue