nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 python3Packages,
4 fetchFromGitHub,
5}:
6
7python3Packages.buildPythonPackage rec {
8 pname = "thinkpad-scripts";
9 version = "4.12.0";
10 pyproject = true;
11
12 src = fetchFromGitHub {
13 owner = "martin-ueding";
14 repo = "thinkpad-scripts";
15 tag = "v${version}";
16 hash = "sha256-foraZWLYV/Rg+TcKy3atAwhXqCBeQeXs+orzWzLqTSE=";
17 };
18
19 build-system = with python3Packages; [
20 setuptools
21 ];
22
23 dependencies = with python3Packages; [
24 setuptools
25 ];
26
27 meta = {
28 description = "Screen rotation, docking and other scripts for ThinkPad® X220 and X230 Tablet";
29 homepage = "https://github.com/martin-ueding/thinkpad-scripts";
30 license = lib.licenses.gpl2Plus;
31 maintainers = with lib.maintainers; [ dawidsowa ];
32 };
33}