Merge pull request #87739 from zowoq/inputs-tags

podman, etc packages: fix/update inputs/tags
This commit is contained in:
Mario Rodas 2020-05-14 20:33:37 -05:00 committed by GitHub
commit 26ac020560
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 32 additions and 13 deletions

View File

@ -6,8 +6,6 @@
, gpgme , gpgme
, installShellFiles , installShellFiles
, libapparmor , libapparmor
, libassuan
, libgpgerror
, libseccomp , libseccomp
, libselinux , libselinux
, lvm2 , lvm2
@ -32,15 +30,15 @@ buildGoModule rec {
btrfs-progs btrfs-progs
gpgme gpgme
libapparmor libapparmor
libassuan
libgpgerror
libseccomp libseccomp
libselinux libselinux
lvm2 lvm2
] ++ stdenv.lib.optionals (glibc != null) [ glibc glibc.static ]; ] ++ stdenv.lib.optionals (glibc != null) [ glibc glibc.static ];
BUILDTAGS = "apparmor seccomp selinux containers_image_ostree_stub"; BUILDTAGS = "apparmor seccomp selinux containers_image_openpgp containers_image_ostree_stub";
buildPhase = '' buildPhase = ''
patchShebangs .
sed -i '/version.buildDate/d' Makefile sed -i '/version.buildDate/d' Makefile
make binaries docs BUILDTAGS="$BUILDTAGS" make binaries docs BUILDTAGS="$BUILDTAGS"

View File

@ -6,7 +6,9 @@
, gpgme , gpgme
, lvm2 , lvm2
, btrfs-progs , btrfs-progs
, libapparmor
, libseccomp , libseccomp
, libselinux
, systemd , systemd
, go-md2man , go-md2man
, nixosTests , nixosTests
@ -29,7 +31,15 @@ buildGoModule rec {
nativeBuildInputs = [ pkg-config go-md2man installShellFiles ]; nativeBuildInputs = [ pkg-config go-md2man installShellFiles ];
buildInputs = stdenv.lib.optionals stdenv.isLinux [ btrfs-progs libseccomp gpgme lvm2 systemd ]; buildInputs = stdenv.lib.optionals stdenv.isLinux [
btrfs-progs
gpgme
libapparmor
libseccomp
libselinux
lvm2
systemd
];
buildPhase = '' buildPhase = ''
patchShebangs . patchShebangs .

View File

@ -8,6 +8,7 @@
, libapparmor , libapparmor
, apparmor-parser , apparmor-parser
, libseccomp , libseccomp
, libselinux
}: }:
buildGoPackage rec { buildGoPackage rec {
@ -25,9 +26,11 @@ buildGoPackage rec {
outputs = [ "out" "man" ]; outputs = [ "out" "man" ];
nativeBuildInputs = [ go-md2man installShellFiles pkg-config which ]; nativeBuildInputs = [ go-md2man installShellFiles pkg-config which ];
buildInputs = [ libseccomp libapparmor apparmor-parser ];
makeFlags = [ "BUILDTAGS+=seccomp" "BUILDTAGS+=apparmor" ]; buildInputs = [ libselinux libseccomp libapparmor apparmor-parser ];
# these will be the default in the next release
makeFlags = [ "BUILDTAGS+=seccomp" "BUILDTAGS+=apparmor" "BUILDTAGS+=selinux" ];
buildPhase = '' buildPhase = ''
cd go/src/${goPackagePath} cd go/src/${goPackagePath}

View File

@ -4,9 +4,9 @@
, installShellFiles , installShellFiles
, pkg-config , pkg-config
, gpgme , gpgme
, libgpgerror
, lvm2 , lvm2
, btrfs-progs , btrfs-progs
, libapparmor
, libselinux , libselinux
, libseccomp , libseccomp
}: }:
@ -27,9 +27,18 @@ buildGoModule rec {
vendorSha256 = null; vendorSha256 = null;
nativeBuildInputs = [ installShellFiles pkg-config ]; nativeBuildInputs = [ installShellFiles pkg-config ];
buildInputs = [ gpgme libgpgerror lvm2 btrfs-progs libselinux libseccomp ];
buildInputs = [
btrfs-progs
gpgme
libapparmor
libseccomp
libselinux
lvm2
];
buildPhase = '' buildPhase = ''
patchShebangs .
make GIT_COMMIT="unknown" make GIT_COMMIT="unknown"
make -C docs make -C docs
''; '';

View File

@ -3,11 +3,9 @@
, fetchFromGitHub , fetchFromGitHub
, runCommand , runCommand
, gpgme , gpgme
, libgpgerror
, lvm2 , lvm2
, btrfs-progs , btrfs-progs
, pkg-config , pkg-config
, libselinux
, go-md2man , go-md2man
, installShellFiles , installShellFiles
, makeWrapper , makeWrapper
@ -41,8 +39,9 @@ buildGoModule {
excludedPackages = [ "integration" ]; excludedPackages = [ "integration" ];
nativeBuildInputs = [ pkg-config go-md2man installShellFiles makeWrapper ]; nativeBuildInputs = [ pkg-config go-md2man installShellFiles makeWrapper ];
buildInputs = [ gpgme ] buildInputs = [ gpgme ]
++ stdenv.lib.optionals stdenv.isLinux [ libgpgerror lvm2 btrfs-progs libselinux ]; ++ stdenv.lib.optionals stdenv.isLinux [ lvm2 btrfs-progs ];
buildFlagsArray = '' buildFlagsArray = ''
-ldflags= -ldflags=