package.nix: factor out buildInputs

Change-Id: I52433bcb7f81f1114507757548f56d41ff1b0836
This commit is contained in:
Qyriad 2024-03-02 18:09:56 -07:00
parent 6528099e40
commit afbccdf41b
2 changed files with 33 additions and 15 deletions

View file

@ -178,17 +178,7 @@
inherit changelog-d;
nativeBuildDeps = calledPackage.nativeBuildInputs;
buildDeps =
[ curl
bzip2 xz brotli editline
openssl sqlite
libarchive
boost
lowdown
libsodium
]
++ lib.optionals stdenv.isLinux [libseccomp]
++ lib.optional stdenv.hostPlatform.isx86_64 libcpuid;
buildDeps = calledPackage.buildInputs;
checkDeps = [
gtest

View file

@ -6,16 +6,28 @@
autoreconfHook,
bison,
changelog-d,
boost,
brotli,
bzip2,
curl,
editline,
fileset,
flex,
git,
jq,
libarchive,
libcpuid,
libseccomp,
libsodium,
lowdown,
mdbook,
mdbook-linkcheck,
pkg-config,
git,
mercurial,
jq,
openssl,
pkg-config,
sqlite,
util-linuxMinimal,
xz,
pname ? "nix",
versionSuffix ? "",
@ -84,4 +96,20 @@ in stdenv.mkDerivation (finalAttrs: {
# FIXME(Qyriad): should this be util-linux as it is in current upstream?
(buildPackages.util-linuxMinimal or buildPackages.utillinuxMinimal)
] ++ lib.optional (!officialRelease && buildUnreleasedNotes) changelog-d;
buildInputs = [
curl
bzip2
xz
brotli
editline
openssl
sqlite
libarchive
boost
lowdown
libsodium
]
++ lib.optionals stdenv.isLinux [ libseccomp ]
++ lib.optional stdenv.hostPlatform.isx86_64 libcpuid;
})