generated from UniDash-Linux/pkg-python3Packages.template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.nix
executable file
·45 lines (45 loc) · 1.48 KB
/
package.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
{
lib,
python312Packages,
fetchFromGitHub,
}:
############
# Packages #
#########################################################################
let
comment = "NumLockX clone for wayland";
pname = "numlockw";
version = "a1345169edbd76bef4a69e2a37f96bf8771a577d";
in python312Packages.buildPythonApplication rec {
## ----------------------------------------------------------------- ##
inherit pname version;
format = "pyproject"; # for not setup.py
dontUseCmakeConfigure = true; # for not setup.py
doCheck = false;
## ----------------------------------------------------------------- ##
src = fetchFromGitHub {
owner = "xz-dev";
repo = "numlockw";
rev = version;
hash = "sha256-uUwXmW/XNjDVDzlu4oNtYSuXqwy+snKNi5is+Jh7eNg=";
};
## ----------------------------------------------------------------- ##
preBuild = ''
sed -i "s/evdev==1.7.1/evdev==1.7.0/g" ./requirements.txt
'';
## ----------------------------------------------------------------- ##
propagatedBuildInputs = with python312Packages; [
setuptools
evdev
];
## ----------------------------------------------------------------- ##
meta = with lib; {
description = comment;
homepage = "https://github.com/RevoluNix/pkg-python311Package.template/";
license = licenses.gpl3;
platforms = platforms.linux;
maintainers = with maintainers; [ pikatsuto ];
mainProgram = pname;
};
#######################################################################
}