NixOS/system/packages/cockpit-podman.nix

35 lines
831 B
Nix
Raw Permalink Normal View History

2024-06-12 20:51:10 +07:00
{ lib, stdenv, fetchzip, gettext, ... }:
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
];
makeFlags = [ "DESTDIR=$(out)" "PREFIX=" ];
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 = [ ];
};
}