Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

default.nix 1.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. { stdenv, fetchFromGitHub, pkgconfig
  2. , buildGoPackage, gpgme, lvm2, btrfs-progs, libseccomp, systemd
  3. , go-md2man
  4. }:
  5. buildGoPackage rec {
  6. pname = "podman";
  7. version = "1.6.1";
  8. src = fetchFromGitHub {
  9. owner = "containers";
  10. repo = "libpod";
  11. rev = "v${version}";
  12. sha256 = "0s9jxcjx9bkml606rn29358pfavd85m6zshra4qkpbc1iwa6hgr9";
  13. };
  14. goPackagePath = "github.com/containers/libpod";
  15. outputs = [ "bin" "out" "man" ];
  16. # Optimizations break compilation of libseccomp c bindings
  17. hardeningDisable = [ "fortify" ];
  18. nativeBuildInputs = [ pkgconfig go-md2man ];
  19. buildInputs = [ btrfs-progs libseccomp gpgme lvm2 systemd ];
  20. buildPhase = ''
  21. pushd $NIX_BUILD_TOP/go/src/${goPackagePath}
  22. patchShebangs .
  23. make binaries docs
  24. '';
  25. installPhase = ''
  26. install -Dm555 bin/podman $bin/bin/podman
  27. MANDIR=$man/share/man make install.man
  28. '';
  29. meta = with stdenv.lib; {
  30. homepage = https://podman.io/;
  31. description = "A program for managing pods, containers and container images";
  32. license = licenses.asl20;
  33. maintainers = with maintainers; [ vdemeester saschagrunert ];
  34. platforms = platforms.linux;
  35. };
  36. }