about summary refs log tree commit diff
path: root/packages/throttled.nix
diff options
context:
space:
mode:
authorAzat Bahawi <azat@bahawi.net>2023-09-30 15:21:49 +0300
committerAzat Bahawi <azat@bahawi.net>2023-09-30 15:21:49 +0300
commit0221d5913ea26fde9493dadfbb265f2ff103124f (patch)
tree29258145f96ffd9bcf5e39f6a1e1e7c4cab57355 /packages/throttled.nix
parent2023-09-28 (diff)
2023-09-30
Diffstat (limited to '')
-rw-r--r--packages/throttled.nix36
1 files changed, 0 insertions, 36 deletions
diff --git a/packages/throttled.nix b/packages/throttled.nix
deleted file mode 100644
index 1c0f853..0000000
--- a/packages/throttled.nix
+++ /dev/null
@@ -1,36 +0,0 @@
-{
-  fetchFromGitHub,
-  kmod,
-  python3Packages,
-  stdenv,
-}:
-stdenv.mkDerivation rec {
-  pname = "throttled";
-  version = "git";
-
-  src = fetchFromGitHub {
-    owner = "erpalma";
-    repo = pname;
-    rev = "1dd726672f0b11b813d4c7b63e0157becde7a013";
-    hash = "sha256-0MsPp6y4r/uZB2SplKV+SAiJoxIs2jgOQmQoQQ2ZKwI=";
-  };
-
-  nativeBuildInputs = with python3Packages; [wrapPython];
-
-  pythonPath =
-    [kmod]
-    ++ (with python3Packages; [configparser dbus-python pygobject3]);
-
-  installPhase = ''
-    runHook preInstall
-
-    install -Dm755 -t $out/opt/throttled throttled.py
-    install -Dm644 -t $out/opt/throttled mmio.py
-
-    runHook postInstall
-  '';
-
-  postFixup = ''
-    wrapPythonProgramsIn $out/opt/throttled "$out $pythonPath"
-  '';
-}

Consider giving Nix/NixOS a try! <3