cockpit: 318 -> 328
Signed-off-by: lucasew <lucas59356@gmail.com>
This commit is contained in:
parent
4d3269da01
commit
0aff14ed0e
@ -36,21 +36,15 @@
|
|||||||
, xmlto
|
, xmlto
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
|
||||||
pythonWithGobject = python3Packages.python.withPackages (p: with p; [
|
|
||||||
pygobject3
|
|
||||||
]);
|
|
||||||
in
|
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "cockpit";
|
pname = "cockpit";
|
||||||
version = "318";
|
version = "328";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "cockpit-project";
|
owner = "cockpit-project";
|
||||||
repo = "cockpit";
|
repo = "cockpit";
|
||||||
rev = "refs/tags/${version}";
|
rev = "refs/tags/${version}";
|
||||||
hash = "sha256-1SpSzC5wOsv4Ha0ShtuyPsKLm0fVuPt8KFejJHFU8MY=";
|
hash = "sha256-0iCFMwnPtbrCXZMQQB0C7xtvGHFLMPk8otgMrJmVxXw=";
|
||||||
fetchSubmodules = true;
|
fetchSubmodules = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -67,7 +61,6 @@ stdenv.mkDerivation rec {
|
|||||||
openssl
|
openssl
|
||||||
pam
|
pam
|
||||||
pkg-config
|
pkg-config
|
||||||
pythonWithGobject.python
|
|
||||||
python3Packages.setuptools
|
python3Packages.setuptools
|
||||||
systemd
|
systemd
|
||||||
xmlto
|
xmlto
|
||||||
@ -82,6 +75,8 @@ stdenv.mkDerivation rec {
|
|||||||
libssh
|
libssh
|
||||||
polkit
|
polkit
|
||||||
udev
|
udev
|
||||||
|
python3Packages.pygobject3
|
||||||
|
python3Packages.pip
|
||||||
];
|
];
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
@ -165,8 +160,6 @@ stdenv.mkDerivation rec {
|
|||||||
src/tls/cockpit-certificate-helper \
|
src/tls/cockpit-certificate-helper \
|
||||||
src/ws/cockpit-desktop
|
src/ws/cockpit-desktop
|
||||||
|
|
||||||
PATH=${pythonWithGobject}/bin patchShebangs src/client/cockpit-client
|
|
||||||
|
|
||||||
substituteInPlace src/ws/cockpit-desktop \
|
substituteInPlace src/ws/cockpit-desktop \
|
||||||
--replace ' /bin/bash' ' ${runtimeShell}'
|
--replace ' /bin/bash' ' ${runtimeShell}'
|
||||||
'';
|
'';
|
||||||
@ -181,8 +174,14 @@ stdenv.mkDerivation rec {
|
|||||||
wrapProgram $out/share/cockpit/motd/update-motd \
|
wrapProgram $out/share/cockpit/motd/update-motd \
|
||||||
--prefix PATH : ${lib.makeBinPath [ gnused ]}
|
--prefix PATH : ${lib.makeBinPath [ gnused ]}
|
||||||
|
|
||||||
|
wrapProgram $out/bin/cockpit-bridge \
|
||||||
|
--prefix PYTHONPATH : $out/${python3Packages.python.sitePackages}
|
||||||
|
|
||||||
|
substituteInPlace $out/${python3Packages.python.sitePackages}/cockpit/_vendor/systemd_ctypes/libsystemd.py \
|
||||||
|
--replace-fail libsystemd.so.0 ${systemd}/lib/libsystemd.so.0
|
||||||
|
|
||||||
substituteInPlace $out/share/polkit-1/actions/org.cockpit-project.cockpit-bridge.policy \
|
substituteInPlace $out/share/polkit-1/actions/org.cockpit-project.cockpit-bridge.policy \
|
||||||
--replace /usr $out
|
--replace-fail /usr $out
|
||||||
|
|
||||||
runHook postFixup
|
runHook postFixup
|
||||||
'';
|
'';
|
||||||
@ -202,7 +201,6 @@ stdenv.mkDerivation rec {
|
|||||||
export G_MESSAGES_DEBUG=cockpit-ws,cockpit-wrapper,cockpit-bridge
|
export G_MESSAGES_DEBUG=cockpit-ws,cockpit-wrapper,cockpit-bridge
|
||||||
export PATH=$PATH:$(pwd)
|
export PATH=$PATH:$(pwd)
|
||||||
|
|
||||||
cockpit-bridge --version
|
|
||||||
make pytest -j$NIX_BUILD_CORES || true
|
make pytest -j$NIX_BUILD_CORES || true
|
||||||
make check -j$NIX_BUILD_CORES || true
|
make check -j$NIX_BUILD_CORES || true
|
||||||
test/static-code
|
test/static-code
|
||||||
|
Loading…
Reference in New Issue
Block a user