forked from lix-project/lix
package.nix: factor out buildInputs
Change-Id: I52433bcb7f81f1114507757548f56d41ff1b0836
This commit is contained in:
parent
6528099e40
commit
afbccdf41b
2 changed files with 33 additions and 15 deletions
12
flake.nix
12
flake.nix
|
@ -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
|
||||
|
|
36
package.nix
36
package.nix
|
@ -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;
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue