depot/third_party/nixpkgs/pkgs/os-specific/bsd/freebsd/package-set.nix

117 lines
2.9 KiB
Nix

{
stdenv,
lib,
stdenvNoCC,
fetchgit,
sourceData,
versionData,
buildFreebsd,
patchesRoot,
writeText,
buildPackages,
}:
self:
lib.packagesFromDirectoryRecursive {
callPackage = self.callPackage;
directory = ./pkgs;
}
// {
inherit sourceData patchesRoot versionData;
# Keep the crawled portion of Nixpkgs finite.
buildFreebsd = lib.dontRecurseIntoAttrs buildFreebsd // {
__attrsFailEvaluation = true;
};
ports = fetchgit {
url = "https://git.FreeBSD.org/ports.git";
rev = "dde3b2b456c3a4bdd217d0bf3684231cc3724a0a";
sha256 = "BpHqJfnGOeTE7tkFJBx0Wk8ryalmf4KNTit/Coh026E=";
};
compatIsNeeded = !stdenvNoCC.hostPlatform.isFreeBSD;
compatIfNeeded = lib.optional self.compatIsNeeded self.compat;
freebsd-lib = import ./lib {
version = lib.concatStringsSep "." (
map toString (
lib.filter (x: x != null) [
self.versionData.major
self.versionData.minor
self.versionData.patch or null
]
)
);
inherit lib writeText;
};
# The manual callPackages below should in principle be unnecessary, but are
# necessary. See note in ../netbsd/default.nix
compat = self.callPackage ./pkgs/compat/package.nix {
inherit stdenv;
inherit (buildFreebsd) makeMinimal;
};
csu = self.callPackage ./pkgs/csu.nix {
inherit (buildFreebsd) makeMinimal install gencat;
inherit (self) include;
};
include = self.callPackage ./pkgs/include/package.nix { inherit (buildFreebsd) rpcgen mtree; };
install = self.callPackage ./pkgs/install.nix {
inherit (buildFreebsd) makeMinimal;
inherit (self) libmd libnetbsd;
};
libcMinimal = self.callPackage ./pkgs/libcMinimal.nix {
inherit (buildFreebsd)
rpcgen
gencat
;
inherit (buildPackages)
flex
byacc
;
};
libc = self.callPackage ./pkgs/libc/package.nix {
inherit (self) libcMinimal librpcsvc libelf;
};
librpcsvc = self.callPackage ./pkgs/librpcsvc.nix {
inherit (buildFreebsd) rpcgen;
};
i18n = self.callPackage ./pkgs/i18n.nix { inherit (buildFreebsd) mkcsmapper mkesdb; };
libelf = self.callPackage ./pkgs/libelf.nix { inherit (buildPackages) m4; };
rtld-elf = self.callPackage ./pkgs/rtld-elf.nix {
inherit (buildFreebsd) rpcgen;
inherit (buildPackages) flex byacc;
};
libnetbsd = self.callPackage ./pkgs/libnetbsd/package.nix { inherit (buildFreebsd) makeMinimal; };
libmd = self.callPackage ./pkgs/libmd.nix { inherit (buildFreebsd) makeMinimal; };
mkDerivation = self.callPackage ./pkgs/mkDerivation.nix {
inherit stdenv;
inherit (buildFreebsd)
freebsdSetupHook
makeMinimal
install
tsort
lorder
;
};
makeMinimal = self.callPackage ./pkgs/makeMinimal.nix { inherit (self) make; };
mtree = self.callPackage ./pkgs/mtree.nix { inherit (self) libnetbsd libmd; };
tsort = self.callPackage ./pkgs/tsort.nix { inherit (buildFreebsd) makeMinimal install; };
}