myrddin: cleanup, add -j$NIX_BUILD_CORES to make

remove unused input, fix formatting, add -j$NIX_BUILD_CORES to make
This commit is contained in:
Sandro 2022-10-14 14:02:07 +02:00 committed by GitHub
parent bfb44da6a4
commit bf0a539da4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4,7 +4,6 @@
, pkg-config
, bison
, binutils
, binutils-unwrapped
, makeWrapper
}:
@ -27,17 +26,17 @@ stdenv.mkDerivation rec {
postPatch = ''
substituteInPlace mk/c.mk \
--replace "-Werror" ""
--replace "-Werror" ""
'';
buildPhase = ''
make bootstrap
make
make bootstrap -j$NIX_BUILD_CORES
make -j$NIX_BUILD_CORES
'';
postInstall = ''
for b in $out/bin/*; do
wrapProgram $b --prefix PATH : $out/bin:${lib.makeBinPath [ binutils ]}
wrapProgram $b --prefix PATH : $out/bin:${lib.makeBinPath [ binutils ]}
done
'';
@ -48,12 +47,12 @@ stdenv.mkDerivation rec {
doCheck = true;
meta = with lib; {
# darwin: never built on Hydra https://hydra.nixos.org/job/nixpkgs/trunk/myrddin.x86_64-darwin
broken = (stdenv.isLinux && stdenv.isAarch64) || stdenv.isDarwin;
description = "Systems language that is both powerful and fun to use";
homepage = "https://myrlang.org/";
license = licenses.mit;
maintainers = with maintainers; [ luc65r ];
platforms = platforms.all;
# darwin: never built on Hydra https://hydra.nixos.org/job/nixpkgs/trunk/myrddin.x86_64-darwin
broken = (stdenv.isLinux && stdenv.isAarch64) || stdenv.isDarwin;
};
}