Skip to content

Commit

Permalink
tlpui: init at 1.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
GeorgesAlkhouri committed Aug 25, 2022
1 parent 069747c commit 55cf28e
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 0 deletions.
55 changes: 55 additions & 0 deletions pkgs/tools/misc/tlpui/default.nix
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) { })'

2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -30979,6 +30979,8 @@ with pkgs;
inherit (linuxPackages) x86_energy_perf_policy;
};

tlpui = python3Packages.callPackage ../tools/misc/tlpui { };

tippecanoe = callPackage ../applications/misc/tippecanoe { };

tmatrix = callPackage ../applications/misc/tmatrix { };
Expand Down

0 comments on commit 55cf28e

Please sign in to comment.