Merge pull request #114976 from siraben/darwin-mass-fix-buildInputs=0

This commit is contained in:
Sandro 2021-03-03 17:58:53 +01:00 committed by GitHub
commit ce258a0664
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
14 changed files with 27 additions and 18 deletions

View File

@ -13,7 +13,7 @@ stdenv.mkDerivation rec {
makeFlags = [ makeFlags = [
"-C sources" "-C sources"
"CC=${stdenv.cc}/bin/cc" "CC=${stdenv.cc.targetPrefix}cc"
]; ];
preInstall = '' preInstall = ''
@ -34,6 +34,6 @@ stdenv.mkDerivation rec {
description = "A portable Forth compiler"; description = "A portable Forth compiler";
homepage = "https://thebeez.home.xs4all.nl/4tH/index.html"; homepage = "https://thebeez.home.xs4all.nl/4tH/index.html";
license = licenses.lgpl3; license = licenses.lgpl3;
platforms = platforms.linux; platforms = platforms.all;
}; };
} }

View File

@ -39,6 +39,6 @@ stdenv.mkDerivation rec {
homepage = "https://github.com/cseed/arachne-pnr"; homepage = "https://github.com/cseed/arachne-pnr";
license = lib.licenses.mit; license = lib.licenses.mit;
maintainers = with lib.maintainers; [ shell thoughtpolice ]; maintainers = with lib.maintainers; [ shell thoughtpolice ];
platforms = lib.platforms.linux; platforms = lib.platforms.unix;
}; };
} }

View File

@ -63,6 +63,6 @@ stdenv.mkDerivation rec {
''; '';
maintainers = [ lib.maintainers.peti ]; maintainers = [ lib.maintainers.peti ];
platforms = lib.platforms.gnu ++ lib.platforms.linux; platforms = lib.platforms.unix;
}; };
} }

View File

@ -70,5 +70,6 @@ stdenv.mkDerivation rec {
homepage = "https://www.cs.kent.ac.uk/people/staff/dat/miranda/"; homepage = "https://www.cs.kent.ac.uk/people/staff/dat/miranda/";
license = licenses.bsd2; license = licenses.bsd2;
maintainers = with maintainers; [ siraben ]; maintainers = with maintainers; [ siraben ];
platforms = platforms.all;
}; };
} }

View File

@ -16,7 +16,7 @@ stdenv.mkDerivation rec {
buildPhase = '' buildPhase = ''
mkdir -p $out/bin $out/share/mu mkdir -p $out/bin $out/share/mu
cp -r lib $out/share/mu cp -r lib $out/share/mu
gcc -O3 -o $out/bin/mu-unwrapped bootstrap/mu64.c ${stdenv.cc.targetPrefix}cc -o $out/bin/mu-unwrapped bootstrap/mu64.c
''; '';
installPhase = '' installPhase = ''
@ -29,6 +29,6 @@ stdenv.mkDerivation rec {
homepage = "https://github.com/nickmqb/muon"; homepage = "https://github.com/nickmqb/muon";
license = licenses.mit; license = licenses.mit;
maintainers = with maintainers; [ Br1ght0ne ]; maintainers = with maintainers; [ Br1ght0ne ];
platforms = [ "x86_64-linux" ]; platforms = platforms.all;
}; };
} }

View File

@ -15,7 +15,7 @@ stdenv.mkDerivation rec {
buildPhase = '' buildPhase = ''
# according to official documentation # according to official documentation
cc rasm_v*.c -O2 -lm -lrt -o rasm ${stdenv.cc.targetPrefix}cc rasm_v*.c -O2 -lm -o rasm
''; '';
installPhase = '' installPhase = ''
@ -28,6 +28,6 @@ stdenv.mkDerivation rec {
# use -n option to display all licenses # use -n option to display all licenses
license = licenses.mit; # expat version license = licenses.mit; # expat version
maintainers = [ ]; maintainers = [ ];
platforms = platforms.linux; platforms = platforms.all;
}; };
} }

View File

@ -14,6 +14,10 @@ stdenv.mkDerivation {
sha256 = "1bns9wgn5i1ahj19qx7v1wwdy8ca3q3pigxwznm5nywsw7s7lqxs"; sha256 = "1bns9wgn5i1ahj19qx7v1wwdy8ca3q3pigxwznm5nywsw7s7lqxs";
}; };
postPatch = ''
substituteInPlace Makefile --replace 'g++' '${stdenv.cc.targetPrefix}c++'
'';
installPhase = '' installPhase = ''
mkdir -p $out/bin mkdir -p $out/bin
mv serpent $out/bin mv serpent $out/bin
@ -33,6 +37,6 @@ stdenv.mkDerivation {
homepage = "https://github.com/ethereum/wiki/wiki/Serpent"; homepage = "https://github.com/ethereum/wiki/wiki/Serpent";
license = with licenses; [ wtfpl ]; license = with licenses; [ wtfpl ];
maintainers = with maintainers; [ chris-martin ]; maintainers = with maintainers; [ chris-martin ];
platforms = with platforms; linux; platforms = platforms.all;
}; };
} }

View File

@ -12,7 +12,6 @@ stdenv.mkDerivation rec {
}; };
nativeBuildInputs = [ cmake ]; nativeBuildInputs = [ cmake ];
buildInputs = [ ];
meta = with lib; { meta = with lib; {
homepage = "https://github.com/liuq/QuadProgpp"; homepage = "https://github.com/liuq/QuadProgpp";
@ -22,6 +21,6 @@ stdenv.mkDerivation rec {
Goldfarb-Idnani active-set dual method. Goldfarb-Idnani active-set dual method.
''; '';
maintainers = with maintainers; [ ]; maintainers = with maintainers; [ ];
platforms = with platforms; linux; platforms = platforms.all;
}; };
} }

View File

@ -26,5 +26,6 @@ stdenv.mkDerivation {
homepage = "https://gitlab.com/somasis/scripts/"; homepage = "https://gitlab.com/somasis/scripts/";
maintainers = [ maintainers.ar1a ]; maintainers = [ maintainers.ar1a ];
license = licenses.unlicense; license = licenses.unlicense;
platforms = platforms.unix;
}; };
} }

View File

@ -14,6 +14,6 @@ stdenv.mkDerivation rec {
description = "Tool for waiting until a particular time and then running a command"; description = "Tool for waiting until a particular time and then running a command";
maintainers = with maintainers; [ kaction ]; maintainers = with maintainers; [ kaction ];
license = licenses.cc0; license = licenses.cc0;
platforms = platforms.linux; platforms = platforms.unix;
}; };
} }

View File

@ -7,8 +7,9 @@ stdenv.mkDerivation rec {
sha256 = "1zn37r5xrvjgjbw2bdkc0r7s6q8b1krmcryzj0yf0dyxbx79rasi"; sha256 = "1zn37r5xrvjgjbw2bdkc0r7s6q8b1krmcryzj0yf0dyxbx79rasi";
}; };
patchPhase = '' postPatch = ''
sed -i "Makefile" -e "s|^ *PREFIX *=.*$|PREFIX = $out|g" sed -i "Makefile" -e "s|^ *PREFIX *=.*$|PREFIX = $out|g"
substituteInPlace Makefile --replace 'gcc' '${stdenv.cc.targetPrefix}cc'
''; '';
meta = { meta = {
@ -24,6 +25,6 @@ stdenv.mkDerivation rec {
license = "liberal"; # a non-copyleft license, see `Copyright' file license = "liberal"; # a non-copyleft license, see `Copyright' file
homepage = "http://www.mesa.nl/pub/mpage/"; homepage = "http://www.mesa.nl/pub/mpage/";
platforms = lib.platforms.linux; platforms = lib.platforms.all;
}; };
} }

View File

@ -1,4 +1,4 @@
{ lib, stdenv, fetchurl }: { lib, stdenv, fetchurl, libintl }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
@ -9,6 +9,9 @@ stdenv.mkDerivation rec {
url = "mirror://savannah/numdiff/numdiff-${version}.tar.gz"; url = "mirror://savannah/numdiff/numdiff-${version}.tar.gz";
sha256 = "1vzmjh8mhwwysn4x4m2vif7q2k8i19x8azq7pzmkwwj4g48lla47"; sha256 = "1vzmjh8mhwwysn4x4m2vif7q2k8i19x8azq7pzmkwwj4g48lla47";
}; };
buildInputs = [ libintl ];
meta = with lib; { meta = with lib; {
description = '' description = ''
A little program that can be used to compare putatively similar files A little program that can be used to compare putatively similar files
@ -18,6 +21,6 @@ stdenv.mkDerivation rec {
homepage = "https://www.nongnu.org/numdiff/"; homepage = "https://www.nongnu.org/numdiff/";
license = licenses.gpl3Plus; license = licenses.gpl3Plus;
maintainers = with maintainers; []; maintainers = with maintainers; [];
platforms = platforms.gnu ++ platforms.linux; platforms = platforms.unix;
}; };
} }

View File

@ -34,6 +34,6 @@ stdenv.mkDerivation rec {
similar ASCII characters, e.g. by stripping diacritics. similar ASCII characters, e.g. by stripping diacritics.
''; '';
maintainers = with lib.maintainers; [ goibhniu ]; maintainers = with lib.maintainers; [ goibhniu ];
platforms = lib.platforms.linux; platforms = lib.platforms.all;
}; };
} }

View File

@ -22,7 +22,7 @@ stdenv.mkDerivation {
description = "Merge YAML data files"; description = "Merge YAML data files";
homepage = "https://github.com/abbradar/yaml-merge"; homepage = "https://github.com/abbradar/yaml-merge";
license = licenses.bsd2; license = licenses.bsd2;
platforms = platforms.linux; platforms = platforms.unix;
maintainers = with maintainers; [ abbradar ]; maintainers = with maintainers; [ abbradar ];
}; };
} }