-
-
Notifications
You must be signed in to change notification settings - Fork 14k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
069747c
commit 55cf28e
Showing
2 changed files
with
57 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
{ | ||
lib, | ||
pkgs, | ||
wrapGAppsHook, | ||
fetchFromGitHub, | ||
buildPythonPackage, | ||
}: | ||
with lib; | ||
buildPythonPackage rec { | ||
pname = "tlpui"; | ||
version = "1.5.0-5"; | ||
|
||
# src = fetchFromGitHub { | ||
# owner = "d4nj1"; | ||
# repo = "TLPUI"; | ||
# rev = "tlpui-${version}"; | ||
# sha256 = "sha256-Xzp+UrgPQ6OHEgnQ1aRvaZ+NWCSjeLdXG88zlgsaTw0="; | ||
# }; | ||
|
||
src = fetchFromGitHub { | ||
owner = "GeorgesAlkhouri"; | ||
repo = "TLPUI"; | ||
rev = "4c8b381f74cc7a21c0c16f86fc0626a17f984eea"; | ||
sha256 = "sha256-URdYZJh9dcWhdtTQee7KUUaQngTNHppL/rb2NSPrSSE="; | ||
}; | ||
|
||
doCheck = false; | ||
# TODO enable tests | ||
# checkInputs = with pkgs.python3Packages; [tox pycodestyle]; | ||
# checkPhase = "tox"; | ||
nativeBuildInputs = [wrapGAppsHook]; | ||
|
||
buildInputs = with pkgs; [ | ||
gtk3 | ||
cairo | ||
gobject-introspection | ||
]; | ||
# sandbox = true; | ||
propagatedBuildInputs = with pkgs; with pkgs.python3Packages; [pycairo pygobject3 tlp pciutils usbutils]; | ||
|
||
meta = { | ||
homepage = "https://github.com/d4nj1/TLPUI"; | ||
description = "A GTK user interface for TLP written in Python"; | ||
longDescription = '' | ||
The Python scripts in this project generate a GTK-UI to change TLP configuration files easily. | ||
It has the aim to protect users from setting bad configuration and to deliver a basic overview of all the valid configuration values. | ||
''; | ||
license = licenses.gpl2Only; | ||
platforms = platforms.linux; | ||
maintainers = with maintainers; []; | ||
}; | ||
} | ||
# nix-build -E '((import <nixpkgs> {}).pkgs.python3Packages.callPackage (import ./default.nix) { })' | ||
# nix-build -E '((import ../../../../default.nix {}).pkgs.python3Packages.callPackage (import ./default.nix) { })' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters