NixOS/system/packages/cockpit-podman.nix

42 lines
845 B
Nix
Raw Normal View History

{
lib,
stdenv,
fetchzip,
gettext,
...
}:
2024-06-12 20:51:10 +07:00
stdenv.mkDerivation rec {
pname = "cockpit-podman";
version = "89";
src = fetchzip {
url = "https://github.com/cockpit-project/${pname}/releases/download/${version}/${pname}-${version}.tar.xz";
sha256 = "sha256-qLt6x9W+M/DztzcFxyWZLHUTM1ZsPCOykO+6o/URa6c=";
};
nativeBuildInputs = [ gettext ];
2024-06-12 20:51:10 +07:00
makeFlags = [
"DESTDIR=$(out)"
"PREFIX="
];
2024-06-12 20:51:10 +07:00
postPatch = ''
substituteInPlace Makefile \
--replace /usr/share $out/share
touch pkg/lib/cockpit-po-plugin.js
touch dist/manifest.json
'';
dontBuild = true;
meta = with lib; {
description = "Cockpit UI for podman containers";
license = licenses.lgpl21;
homepage = "https://github.com/cockpit-project/cockpit-podman";
platforms = platforms.linux;
maintainers = [ ];
};
}