mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-09-28 02:40:50 +00:00
freebsd: correctly don't assume packages will build for platforms other than freebsd
facf54a5e7 was not tested correctly,
and in fact had the opposite effect of its intent.
This commit is contained in:
@@ -1,5 +1,10 @@
|
||||
{ mkDerivation }:
|
||||
{
|
||||
lib,
|
||||
mkDerivation,
|
||||
}:
|
||||
mkDerivation {
|
||||
path = "usr.bin/bintrans";
|
||||
MK_TESTS = "no";
|
||||
|
||||
meta.platforms = lib.platforms.unix;
|
||||
}
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
{
|
||||
lib,
|
||||
mkDerivation,
|
||||
bsdSetupHook,
|
||||
freebsdSetupHook,
|
||||
@@ -32,4 +33,6 @@ mkDerivation {
|
||||
libnv
|
||||
libsbuf
|
||||
];
|
||||
|
||||
meta.platforms = lib.platforms.unix;
|
||||
}
|
||||
|
||||
@@ -34,4 +34,5 @@ mkDerivation {
|
||||
];
|
||||
|
||||
meta.license = lib.licenses.cddl;
|
||||
meta.platforms = lib.platforms.unix;
|
||||
}
|
||||
|
||||
@@ -32,4 +32,5 @@ mkDerivation {
|
||||
];
|
||||
|
||||
meta.license = lib.licenses.cddl;
|
||||
meta.platforms = lib.platforms.unix;
|
||||
}
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
{
|
||||
lib,
|
||||
mkDerivation,
|
||||
compatIfNeeded,
|
||||
libelf,
|
||||
@@ -24,4 +25,6 @@ mkDerivation {
|
||||
|
||||
# since we built libpe and co separate they are not internal and thus not pie...?
|
||||
MK_PIE = "no";
|
||||
|
||||
meta.platforms = lib.platforms.unix;
|
||||
}
|
||||
|
||||
@@ -1,6 +1,11 @@
|
||||
{ mkDerivation }:
|
||||
{
|
||||
lib,
|
||||
mkDerivation,
|
||||
}:
|
||||
|
||||
mkDerivation {
|
||||
path = "usr.bin/file2c";
|
||||
MK_TESTS = "no";
|
||||
|
||||
meta.platforms = lib.platforms.unix;
|
||||
}
|
||||
|
||||
@@ -1,3 +1,9 @@
|
||||
{ mkDerivation }:
|
||||
{
|
||||
lib, mkDerivation,
|
||||
}:
|
||||
|
||||
mkDerivation { path = "usr.bin/gencat"; }
|
||||
mkDerivation {
|
||||
path = "usr.bin/gencat";
|
||||
|
||||
meta.platforms = lib.platforms.unix;
|
||||
}
|
||||
|
||||
@@ -70,4 +70,6 @@ mkDerivation {
|
||||
"man"
|
||||
"test"
|
||||
];
|
||||
|
||||
meta.platforms = lib.platforms.unix;
|
||||
}
|
||||
|
||||
@@ -26,4 +26,6 @@ mkDerivation {
|
||||
postPatch = ''
|
||||
sed -i 's/FTS_PHYSICAL/FTS_LOGICAL/' $BSDSRCDIR/usr.sbin/kldxref/kldxref.c
|
||||
'';
|
||||
|
||||
meta.platforms = lib.platforms.unix;
|
||||
}
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
{
|
||||
lib,
|
||||
mkDerivation,
|
||||
m4,
|
||||
compatIfNeeded,
|
||||
@@ -21,4 +22,6 @@ mkDerivation {
|
||||
libelf
|
||||
];
|
||||
MK_TESTS = "no";
|
||||
|
||||
meta.platforms = lib.platforms.unix;
|
||||
}
|
||||
|
||||
@@ -41,4 +41,6 @@ mkDerivation {
|
||||
preBuild = lib.optionalString stdenv.hostPlatform.isFreeBSD ''
|
||||
export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -B${csu}/lib"
|
||||
'';
|
||||
|
||||
meta.platforms = lib.platforms.unix;
|
||||
}
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
{
|
||||
lib,
|
||||
mkDerivation,
|
||||
libelf,
|
||||
compatIfNeeded,
|
||||
@@ -19,4 +20,6 @@ mkDerivation {
|
||||
'';
|
||||
|
||||
alwaysKeepStatic = true;
|
||||
|
||||
meta.platforms = lib.platforms.unix;
|
||||
}
|
||||
|
||||
@@ -70,6 +70,8 @@ mkDerivation (
|
||||
cp "$f" "$man/share/man/$f"
|
||||
done
|
||||
'';
|
||||
|
||||
meta.platforms = lib.platforms.unix;
|
||||
}
|
||||
// lib.optionalAttrs bootstrapInstallation {
|
||||
nativeBuildInputs = [
|
||||
|
||||
@@ -28,4 +28,6 @@ mkDerivation {
|
||||
++ lib.optional (stdenv.hostPlatform == stdenv.buildPlatform) "INSTALL=boot-install";
|
||||
|
||||
alwaysKeepStatic = true;
|
||||
|
||||
meta.platforms = lib.platforms.unix;
|
||||
}
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
{ mkDerivation }:
|
||||
{
|
||||
lib,
|
||||
mkDerivation,
|
||||
}:
|
||||
|
||||
mkDerivation {
|
||||
path = "lib/libnv";
|
||||
@@ -7,4 +10,6 @@ mkDerivation {
|
||||
"sys/sys"
|
||||
];
|
||||
MK_TESTS = "no";
|
||||
|
||||
meta.platforms = lib.platforms.unix;
|
||||
}
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
{
|
||||
lib,
|
||||
mkDerivation,
|
||||
}:
|
||||
mkDerivation {
|
||||
@@ -13,4 +14,6 @@ mkDerivation {
|
||||
'';
|
||||
|
||||
alwaysKeepStatic = true;
|
||||
|
||||
meta.platforms = lib.platforms.unix;
|
||||
}
|
||||
|
||||
@@ -1,7 +1,12 @@
|
||||
{ mkDerivation }:
|
||||
{
|
||||
lib,
|
||||
mkDerivation,
|
||||
}:
|
||||
|
||||
mkDerivation {
|
||||
path = "lib/libsbuf";
|
||||
extraPaths = [ "sys/kern" ];
|
||||
env.MK_TESTS = "no";
|
||||
|
||||
meta.platforms = lib.platforms.unix;
|
||||
}
|
||||
|
||||
@@ -19,5 +19,6 @@ mkDerivation {
|
||||
|
||||
meta = {
|
||||
license = lib.licenses.cddl;
|
||||
platforms = lib.platforms.unix;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
{
|
||||
lib,
|
||||
mkDerivation,
|
||||
bsdSetupHook,
|
||||
freebsdSetupHook,
|
||||
@@ -22,4 +23,6 @@ mkDerivation {
|
||||
"out"
|
||||
"man"
|
||||
];
|
||||
|
||||
meta.platforms = lib.platforms.unix;
|
||||
}
|
||||
|
||||
@@ -65,4 +65,6 @@ mkDerivation {
|
||||
'';
|
||||
|
||||
extraPaths = make.extraPaths;
|
||||
|
||||
meta.platforms = lib.platforms.unix;
|
||||
}
|
||||
|
||||
@@ -114,6 +114,7 @@ lib.makeOverridable (
|
||||
artemist
|
||||
];
|
||||
license = lib.licenses.bsd2;
|
||||
platforms = lib.platforms.freebsd;
|
||||
}
|
||||
// attrs.meta or { };
|
||||
}
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
mkDerivation,
|
||||
byacc,
|
||||
@@ -17,4 +18,6 @@ mkDerivation {
|
||||
byacc
|
||||
flex
|
||||
];
|
||||
|
||||
meta.platforms = lib.platforms.unix;
|
||||
}
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
{
|
||||
lib,
|
||||
mkDerivation,
|
||||
byacc,
|
||||
flex,
|
||||
@@ -13,4 +14,6 @@ mkDerivation {
|
||||
byacc
|
||||
flex
|
||||
];
|
||||
|
||||
meta.platforms = lib.platforms.unix;
|
||||
}
|
||||
|
||||
@@ -42,4 +42,6 @@ mkDerivation {
|
||||
)
|
||||
}"
|
||||
'';
|
||||
|
||||
meta.platforms = lib.platforms.unix;
|
||||
}
|
||||
|
||||
@@ -23,4 +23,6 @@ mkDerivation {
|
||||
# the problem is fixed properly in glibc.
|
||||
./rpcgen-glibc-hack.patch
|
||||
];
|
||||
|
||||
meta.platforms = lib.platforms.unix;
|
||||
}
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
{
|
||||
lib,
|
||||
mkDerivation,
|
||||
bsdSetupHook,
|
||||
freebsdSetupHook,
|
||||
@@ -24,4 +25,6 @@ mkDerivation {
|
||||
mandoc
|
||||
groff
|
||||
];
|
||||
|
||||
meta.platforms = lib.platforms.unix;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user