wlr-layout-ui: 1.6.11 -> 1.6.14

This commit is contained in:
Ben Lorenz 2024-06-24 22:27:31 +02:00
parent 79378c3bd6
commit 6a1ada4d04

View File

@ -5,24 +5,16 @@
python3.pkgs.buildPythonApplication rec {
pname = "wlr-layout-ui";
version = "1.6.11";
version = "1.6.14";
pyproject = true;
src = fetchFromGitHub {
owner = "fdev31";
repo = "wlr-layout-ui";
rev = "refs/tags/${version}";
hash = "sha256-aM8KV3jzim14lBVvn/AqUsfoRWrnKtRJeFSX1Thrq3M=";
hash = "sha256-Qgg4fdxOVkADDOxmQgQFSF/wgrEQihoRNC9oXeQvaoI=";
};
postPatch = ''
# The hyprland default.nix patches the version.h of hyprland so that the
# version info moves to the commit key.
substituteInPlace src/wlr_layout_ui/screens.py \
--replace 'json.loads(subprocess.getoutput("hyprctl -j version"))["tag"]'\
'json.loads(subprocess.getoutput("hyprctl -j version"))["commit"]'
'';
nativeBuildInputs = [
python3.pkgs.poetry-core
];