2024-10-21 12:31:30 +07:00
|
|
|
{
|
|
|
|
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=";
|
|
|
|
};
|
|
|
|
|
2024-10-21 12:31:30 +07:00
|
|
|
nativeBuildInputs = [ gettext ];
|
2024-06-12 20:51:10 +07:00
|
|
|
|
2024-10-21 12:31:30 +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 = [ ];
|
|
|
|
};
|
|
|
|
}
|