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
59
pkgs/development/compilers/myrddin/default.nix
Normal file
59
pkgs/development/compilers/myrddin/default.nix
Normal file
|
|
@ -0,0 +1,59 @@
|
|||
{ stdenv
|
||||
, lib
|
||||
, fetchFromGitHub
|
||||
, pkg-config
|
||||
, bison
|
||||
, binutils
|
||||
, binutils-unwrapped
|
||||
, makeWrapper
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "myrddin";
|
||||
version = "0.3.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
repo = "mc";
|
||||
owner = "oridb";
|
||||
rev = "r${version}";
|
||||
sha256 = "7ImjiG/rIKGPHq3Vh/mftY7pqw/vfOxD3LJeT87HmCk=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
bison
|
||||
pkg-config
|
||||
makeWrapper
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace mk/c.mk \
|
||||
--replace "-Werror" ""
|
||||
'';
|
||||
|
||||
buildPhase = ''
|
||||
make bootstrap
|
||||
make
|
||||
'';
|
||||
|
||||
postInstall = ''
|
||||
for b in $out/bin/*; do
|
||||
wrapProgram $b --prefix PATH : $out/bin:${lib.makeBinPath [ binutils ]}
|
||||
done
|
||||
'';
|
||||
|
||||
checkPhase = ''
|
||||
make check
|
||||
'';
|
||||
|
||||
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;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue