cockpit-podman: init at 119.1
Co-authored-by: lucasew <lucas59356@gmail.com>
This commit is contained in:
@@ -0,0 +1,63 @@
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
cockpit,
|
||||
nodejs,
|
||||
gettext,
|
||||
writeShellScriptBin,
|
||||
fetchFromGitHub,
|
||||
gitUpdater,
|
||||
podman,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "cockpit-podman";
|
||||
version = "119.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "cockpit-project";
|
||||
repo = "cockpit-podman";
|
||||
tag = finalAttrs.version;
|
||||
hash = "sha256-XAOHkul9oh1mUJ27ghJgZLtriBGjofyoGhQ3gb7Gunc=";
|
||||
|
||||
fetchSubmodules = true;
|
||||
postFetch = "cp $out/node_modules/.package-lock.json $out/package-lock.json";
|
||||
};
|
||||
|
||||
buildInputs = [
|
||||
nodejs
|
||||
gettext
|
||||
(writeShellScriptBin "git" "true")
|
||||
];
|
||||
|
||||
cockpitSrc = cockpit.src;
|
||||
|
||||
postPatch = ''
|
||||
mkdir -p pkg; cp -r $cockpitSrc/pkg/lib pkg
|
||||
mkdir -p test; cp -r $cockpitSrc/test/common test
|
||||
|
||||
substituteInPlace Makefile \
|
||||
--replace-fail '$(MAKE) package-lock.json' 'true' \
|
||||
--replace-fail '$(COCKPIT_REPO_FILES) | tar x' "" \
|
||||
--replace-fail '/usr/local' "$out"
|
||||
|
||||
substituteInPlace src/manifest.json \
|
||||
--replace-fail '"/lib/systemd' '"/run/current-system/sw/lib/systemd'
|
||||
|
||||
patchShebangs build.js
|
||||
'';
|
||||
|
||||
passthru = {
|
||||
updateScript = gitUpdater { };
|
||||
cockpitPath = [ podman ];
|
||||
};
|
||||
|
||||
meta = {
|
||||
description = "Cockpit UI for podman containers";
|
||||
homepage = "https://github.com/cockpit-project/cockpit-podman";
|
||||
changelog = "https://github.com/cockpit-project/cockpit-podman/releases/tag/${finalAttrs.version}";
|
||||
platforms = lib.platforms.linux;
|
||||
license = [ lib.licenses.lgpl21 ];
|
||||
teams = [ lib.teams.cockpit ];
|
||||
};
|
||||
})
|
||||
Reference in New Issue
Block a user