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
33
pkgs/development/interpreters/rakudo/default.nix
Normal file
33
pkgs/development/interpreters/rakudo/default.nix
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
{ stdenv, fetchurl, perl, icu, zlib, gmp, lib, nqp, removeReferencesTo }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "rakudo";
|
||||
version = "2022.03";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://rakudo.org/dl/rakudo/rakudo-${version}.tar.gz";
|
||||
sha256 = "sha256-A+IVsAGoeXR2GNb8GOt/icC4EvXlQ6Q+1mwTQ56ooic=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ removeReferencesTo ];
|
||||
|
||||
buildInputs = [ icu zlib gmp perl ];
|
||||
configureScript = "perl ./Configure.pl";
|
||||
configureFlags = [
|
||||
"--backends=moar"
|
||||
"--with-nqp=${nqp}/bin/nqp"
|
||||
];
|
||||
|
||||
disallowedReferences = [ stdenv.cc.cc ];
|
||||
postFixup = ''
|
||||
remove-references-to -t ${stdenv.cc.cc} "$(readlink -f $out/share/perl6/runtime/dynext/libperl6_ops_moar${stdenv.hostPlatform.extensions.sharedLibrary})"
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Raku implementation on top of Moar virtual machine";
|
||||
homepage = "https://rakudo.org";
|
||||
license = licenses.artistic2;
|
||||
platforms = platforms.unix;
|
||||
maintainers = with maintainers; [ thoughtpolice vrthra sgo ];
|
||||
};
|
||||
}
|
||||
53
pkgs/development/interpreters/rakudo/moarvm.nix
Normal file
53
pkgs/development/interpreters/rakudo/moarvm.nix
Normal file
|
|
@ -0,0 +1,53 @@
|
|||
{ lib
|
||||
, stdenv
|
||||
, fetchurl
|
||||
, fetchpatch
|
||||
, perl
|
||||
, CoreServices
|
||||
, ApplicationServices
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "moarvm";
|
||||
version = "2022.03";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://moarvm.org/releases/MoarVM-${version}.tar.gz";
|
||||
sha256 = "sha256-+3HNE5EkZEgrmbM/DAbp/XxRoVHG5jKpIgz5PFhV/a8=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
(fetchpatch {
|
||||
name = "mimalloc-older-macos-fixes.patch";
|
||||
url = "https://github.com/microsoft/mimalloc/commit/40e0507a5959ee218f308d33aec212c3ebeef3bb.patch";
|
||||
stripLen = 1;
|
||||
extraPrefix = "3rdparty/mimalloc/";
|
||||
sha256 = "1gcbn1850vy7xzalhn9ffnsg6x1ywi3fmnxvnal3m6lmb4kz5kb1";
|
||||
})
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
patchShebangs .
|
||||
'' + lib.optionalString stdenv.isDarwin ''
|
||||
substituteInPlace Configure.pl \
|
||||
--replace '`/usr/bin/arch`' '"${stdenv.hostPlatform.darwinArch}"' \
|
||||
--replace '/usr/bin/arch' "$(type -P true)" \
|
||||
--replace '/usr/' '/nope/'
|
||||
substituteInPlace 3rdparty/dyncall/configure \
|
||||
--replace '`sw_vers -productVersion`' '"$MACOSX_DEPLOYMENT_TARGET"'
|
||||
'';
|
||||
|
||||
buildInputs = [ perl ] ++ lib.optionals stdenv.isDarwin [ CoreServices ApplicationServices ];
|
||||
doCheck = false; # MoarVM does not come with its own test suite
|
||||
|
||||
configureScript = "${perl}/bin/perl ./Configure.pl";
|
||||
|
||||
meta = with lib; {
|
||||
description = "VM with adaptive optimization and JIT compilation, built for Rakudo";
|
||||
homepage = "https://moarvm.org";
|
||||
license = licenses.artistic2;
|
||||
maintainers = with maintainers; [ thoughtpolice vrthra sgo ];
|
||||
mainProgram = "moar";
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
}
|
||||
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 ];
|
||||
};
|
||||
}
|
||||
35
pkgs/development/interpreters/rakudo/zef.nix
Normal file
35
pkgs/development/interpreters/rakudo/zef.nix
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
{ lib, stdenv, fetchFromGitHub, rakudo, makeWrapper }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "zef";
|
||||
version = "0.13.7";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "ugexe";
|
||||
repo = "zef";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-FEQwe9MkP+tFZgXiR3hrNS+Jyavj85oYql3uOLP3nwc=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ makeWrapper ];
|
||||
buildInputs = [ rakudo ];
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p "$out"
|
||||
# TODO: Find better solution. zef stores cache stuff in $HOME with the
|
||||
# default config.
|
||||
env HOME=$TMPDIR ${rakudo}/bin/raku -I. ./bin/zef --/depends --/test-depends --/build-depends --install-to=$out install .
|
||||
'';
|
||||
|
||||
postFixup =''
|
||||
wrapProgram $out/bin/zef --prefix RAKUDOLIB , "inst#$out"
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Raku / Perl6 Module Management";
|
||||
homepage = "https://github.com/ugexe/zef";
|
||||
license = licenses.artistic2;
|
||||
platforms = platforms.unix;
|
||||
maintainers = with maintainers; [ sgo ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue