mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-10-30 06:01:19 +00:00
Merge pull request #301557 from bnlrnz/add-wlr-layout-ui
wlr-layout-ui: init at 1.4.7
This commit is contained in:
commit
23b0c99bcf
@ -2726,6 +2726,12 @@
|
||||
github = "bmwalters";
|
||||
githubId = 4380777;
|
||||
};
|
||||
bnlrnz = {
|
||||
github = "bnlrnz";
|
||||
githubId = 11310385;
|
||||
name = "Ben Lorenz";
|
||||
email = "bnlrnz@gmail.com";
|
||||
};
|
||||
bobakker = {
|
||||
email = "bobakk3r@gmail.com";
|
||||
github = "bobakker";
|
||||
|
48
pkgs/by-name/wl/wlr-layout-ui/package.nix
Normal file
48
pkgs/by-name/wl/wlr-layout-ui/package.nix
Normal file
@ -0,0 +1,48 @@
|
||||
{ lib
|
||||
, python3
|
||||
, fetchFromGitHub
|
||||
}:
|
||||
|
||||
python3.pkgs.buildPythonApplication rec {
|
||||
pname = "wlr-layout-ui";
|
||||
version = "1.4.7";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "fdev31";
|
||||
repo = "wlr-layout-ui";
|
||||
rev = "${version}";
|
||||
hash = "sha256-3NV02/Lk43h3r17jwmSAqx7wofaHFJKDh+vaWwU17Gw=";
|
||||
};
|
||||
|
||||
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
|
||||
];
|
||||
|
||||
propagatedBuildInputs = with python3.pkgs; [
|
||||
pyglet
|
||||
tomli
|
||||
tomli-w
|
||||
];
|
||||
|
||||
postInstall = ''
|
||||
install -Dm644 files/wlr-layout-ui.desktop $out/share/applications/wlr-layout-ui.desktop
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "A simple GUI to setup the screens layout on wlroots based systems";
|
||||
homepage = "https://github.com/fdev31/wlr-layout-ui/";
|
||||
maintainers = with maintainers; [ bnlrnz ];
|
||||
license = licenses.mit;
|
||||
mainProgram = "wlrlui";
|
||||
platforms = subtractLists platforms.darwin platforms.unix;
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user