mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-03 13:30:36 +00:00
nwg-hello: 0.3.1 -> 0.4.0
Diff: https://github.com/nwg-piotr/nwg-hello/compare/refs/tags/v0.3.1...refs/tags/v0.4.0 Changelog: https://github.com/nwg-piotr/nwg-hello/releases/tag/v0.4.0
This commit is contained in:
@@ -10,14 +10,14 @@
|
||||
|
||||
python3Packages.buildPythonApplication rec {
|
||||
pname = "nwg-hello";
|
||||
version = "0.3.1";
|
||||
version = "0.4.0";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "nwg-piotr";
|
||||
repo = "nwg-hello";
|
||||
tag = "v${version}";
|
||||
hash = "sha256-ZqZikkwV3UVA0e9VCFHjXAAIegvz3I6CNURZSP4owmU=";
|
||||
hash = "sha256-yevcHctVnUWuPsdB+KN+Uuxg+iGdzP7WOOTMUvVmuEY=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
@@ -39,15 +39,15 @@ python3Packages.buildPythonApplication rec {
|
||||
postPatch = ''
|
||||
# hard coded paths
|
||||
substituteInPlace nwg_hello/main.py \
|
||||
--replace '/etc/nwg-hello' "$out/etc/nwg-hello" \
|
||||
--replace "/usr/share/xsessions" "/run/current-system/sw/share/xsessions" \
|
||||
--replace "/usr/share/wayland-sessions" "/run/current-system/sw/share/wayland-sessions"
|
||||
--replace-fail '/etc/nwg-hello' "$out/etc/nwg-hello" \
|
||||
--replace-fail "/usr/share/xsessions" "/run/current-system/sw/share/xsessions" \
|
||||
--replace-fail "/usr/share/wayland-sessions" "/run/current-system/sw/share/wayland-sessions"
|
||||
|
||||
substituteInPlace nwg-hello-default.json \
|
||||
--replace "/usr/share/xsessions" "/run/current-system/sw/share/xsessions" \
|
||||
--replace "/usr/share/wayland-sessions" "/run/current-system/sw/share/wayland-sessions"
|
||||
--replace-fail "/usr/share/xsessions" "/run/current-system/sw/share/xsessions" \
|
||||
--replace-fail "/usr/share/wayland-sessions" "/run/current-system/sw/share/wayland-sessions"
|
||||
|
||||
substituteInPlace nwg_hello/ui.py --replace '/usr/share/nwg-hello' "$out/share/nwg-hello"
|
||||
substituteInPlace nwg_hello/ui.py --replace-fail '/usr/share/nwg-hello' "$out/share/nwg-hello"
|
||||
'';
|
||||
|
||||
postInstall = ''
|
||||
|
||||
Reference in New Issue
Block a user