Loading nixos/modules/programs/coolercontrol.nix +0 −2 Original line number Diff line number Diff line Loading @@ -34,13 +34,11 @@ in systemd = { packages = with pkgs.coolercontrol; [ coolercontrol-liqctld coolercontrold ]; # https://github.com/NixOS/nixpkgs/issues/81138 services = { coolercontrol-liqctld.wantedBy = [ "multi-user.target" ]; coolercontrold.wantedBy = [ "multi-user.target" ]; }; }; Loading pkgs/applications/system/coolercontrol/coolercontrol-liqctld.nixdeleted 100644 → 0 +0 −34 Original line number Diff line number Diff line { python3 }: { version, src, meta, }: python3.pkgs.buildPythonApplication { pname = "coolercontrol-liqctld"; inherit version src; sourceRoot = "${src.name}/coolercontrol-liqctld"; format = "pyproject"; nativeBuildInputs = with python3.pkgs; [ setuptools ]; propagatedBuildInputs = with python3.pkgs; [ liquidctl setproctitle fastapi uvicorn ]; postInstall = '' install -Dm444 "${src}/packaging/systemd/coolercontrol-liqctld.service" -t "$out/lib/systemd/system" substituteInPlace "$out/lib/systemd/system/coolercontrol-liqctld.service" \ --replace-fail '/usr/bin' "$out/bin" ''; meta = meta // { description = "${meta.description} (Liquidctl Daemon)"; mainProgram = "coolercontrol-liqctld"; }; } pkgs/applications/system/coolercontrol/coolercontrol-ui-data.nix +1 −1 Original line number Diff line number Diff line Loading @@ -11,7 +11,7 @@ buildNpmPackage { inherit version src; sourceRoot = "${src.name}/coolercontrol-ui"; npmDepsHash = "sha256-FFVCE3/E+eiTvTeU53cc1Mdbrl5J3+YgYUYltpnGXz0="; npmDepsHash = "sha256-MhMHo6wjkaSCyevwzAKCvSsJTmAq9rYFG1ZVUAkRc0Y="; postBuild = '' cp -r dist $out Loading pkgs/applications/system/coolercontrol/coolercontrold.nix +15 −4 Original line number Diff line number Diff line Loading @@ -5,6 +5,8 @@ coolercontrol, runtimeShell, addDriverRunpath, python3Packages, liquidctl, }: { Loading @@ -18,10 +20,16 @@ rustPlatform.buildRustPackage { inherit version src; sourceRoot = "${src.name}/coolercontrold"; cargoHash = "sha256-ZyYyQcaYd3VZ7FL0Hki33JO3LscPfBT5gl+nw2cXvUs="; cargoHash = "sha256-4aSEEBtxwTyAx5CPa2fDBhx5U+Ql2X/tKPQHLIsm3I0="; buildInputs = [ libdrm ]; nativeBuildInputs = [ addDriverRunpath ]; nativeBuildInputs = [ addDriverRunpath python3Packages.wrapPython ]; pythonPath = [ liquidctl ]; postPatch = '' # copy the frontend static resources to a directory for embedding Loading @@ -41,12 +49,15 @@ rustPlatform.buildRustPackage { postFixup = '' addDriverRunpath "$out/bin/coolercontrold" buildPythonPath "$pythonPath" wrapProgram "$out/bin/coolercontrold" \ --prefix PATH : $program_PATH \ --prefix PYTHONPATH : $program_PYTHONPATH ''; passthru.tests.version = testers.testVersion { package = coolercontrol.coolercontrold; # coolercontrold prints its version with "v" prefix version = "v${version}"; }; meta = meta // { Loading pkgs/applications/system/coolercontrol/default.nix +6 −5 Original line number Diff line number Diff line Loading @@ -5,20 +5,23 @@ }: let version = "2.1.0"; version = "3.0.1"; src = fetchFromGitLab { owner = "coolercontrol"; repo = "coolercontrol"; rev = version; hash = "sha256-xIc0ZecQGyjMQWVaucKomu7SbaHy+ymg5dkOjHjtJ9c="; hash = "sha256-PvEj3xYJVpHNfd5p7kyw+eW9S/g1FB/YiFgWEJDDbus="; }; meta = { description = "Monitor and control your cooling devices"; homepage = "https://gitlab.com/coolercontrol/coolercontrol"; license = lib.licenses.gpl3Plus; platforms = [ "x86_64-linux" ]; platforms = [ "x86_64-linux" "aarch64-linux" ]; maintainers = with lib.maintainers; [ codifryed OPNA2608 Loading @@ -33,6 +36,4 @@ in coolercontrold = applySharedDetails (callPackage ./coolercontrold.nix { }); coolercontrol-gui = applySharedDetails (callPackage ./coolercontrol-gui.nix { }); coolercontrol-liqctld = applySharedDetails (callPackage ./coolercontrol-liqctld.nix { }); } Loading
nixos/modules/programs/coolercontrol.nix +0 −2 Original line number Diff line number Diff line Loading @@ -34,13 +34,11 @@ in systemd = { packages = with pkgs.coolercontrol; [ coolercontrol-liqctld coolercontrold ]; # https://github.com/NixOS/nixpkgs/issues/81138 services = { coolercontrol-liqctld.wantedBy = [ "multi-user.target" ]; coolercontrold.wantedBy = [ "multi-user.target" ]; }; }; Loading
pkgs/applications/system/coolercontrol/coolercontrol-liqctld.nixdeleted 100644 → 0 +0 −34 Original line number Diff line number Diff line { python3 }: { version, src, meta, }: python3.pkgs.buildPythonApplication { pname = "coolercontrol-liqctld"; inherit version src; sourceRoot = "${src.name}/coolercontrol-liqctld"; format = "pyproject"; nativeBuildInputs = with python3.pkgs; [ setuptools ]; propagatedBuildInputs = with python3.pkgs; [ liquidctl setproctitle fastapi uvicorn ]; postInstall = '' install -Dm444 "${src}/packaging/systemd/coolercontrol-liqctld.service" -t "$out/lib/systemd/system" substituteInPlace "$out/lib/systemd/system/coolercontrol-liqctld.service" \ --replace-fail '/usr/bin' "$out/bin" ''; meta = meta // { description = "${meta.description} (Liquidctl Daemon)"; mainProgram = "coolercontrol-liqctld"; }; }
pkgs/applications/system/coolercontrol/coolercontrol-ui-data.nix +1 −1 Original line number Diff line number Diff line Loading @@ -11,7 +11,7 @@ buildNpmPackage { inherit version src; sourceRoot = "${src.name}/coolercontrol-ui"; npmDepsHash = "sha256-FFVCE3/E+eiTvTeU53cc1Mdbrl5J3+YgYUYltpnGXz0="; npmDepsHash = "sha256-MhMHo6wjkaSCyevwzAKCvSsJTmAq9rYFG1ZVUAkRc0Y="; postBuild = '' cp -r dist $out Loading
pkgs/applications/system/coolercontrol/coolercontrold.nix +15 −4 Original line number Diff line number Diff line Loading @@ -5,6 +5,8 @@ coolercontrol, runtimeShell, addDriverRunpath, python3Packages, liquidctl, }: { Loading @@ -18,10 +20,16 @@ rustPlatform.buildRustPackage { inherit version src; sourceRoot = "${src.name}/coolercontrold"; cargoHash = "sha256-ZyYyQcaYd3VZ7FL0Hki33JO3LscPfBT5gl+nw2cXvUs="; cargoHash = "sha256-4aSEEBtxwTyAx5CPa2fDBhx5U+Ql2X/tKPQHLIsm3I0="; buildInputs = [ libdrm ]; nativeBuildInputs = [ addDriverRunpath ]; nativeBuildInputs = [ addDriverRunpath python3Packages.wrapPython ]; pythonPath = [ liquidctl ]; postPatch = '' # copy the frontend static resources to a directory for embedding Loading @@ -41,12 +49,15 @@ rustPlatform.buildRustPackage { postFixup = '' addDriverRunpath "$out/bin/coolercontrold" buildPythonPath "$pythonPath" wrapProgram "$out/bin/coolercontrold" \ --prefix PATH : $program_PATH \ --prefix PYTHONPATH : $program_PYTHONPATH ''; passthru.tests.version = testers.testVersion { package = coolercontrol.coolercontrold; # coolercontrold prints its version with "v" prefix version = "v${version}"; }; meta = meta // { Loading
pkgs/applications/system/coolercontrol/default.nix +6 −5 Original line number Diff line number Diff line Loading @@ -5,20 +5,23 @@ }: let version = "2.1.0"; version = "3.0.1"; src = fetchFromGitLab { owner = "coolercontrol"; repo = "coolercontrol"; rev = version; hash = "sha256-xIc0ZecQGyjMQWVaucKomu7SbaHy+ymg5dkOjHjtJ9c="; hash = "sha256-PvEj3xYJVpHNfd5p7kyw+eW9S/g1FB/YiFgWEJDDbus="; }; meta = { description = "Monitor and control your cooling devices"; homepage = "https://gitlab.com/coolercontrol/coolercontrol"; license = lib.licenses.gpl3Plus; platforms = [ "x86_64-linux" ]; platforms = [ "x86_64-linux" "aarch64-linux" ]; maintainers = with lib.maintainers; [ codifryed OPNA2608 Loading @@ -33,6 +36,4 @@ in coolercontrold = applySharedDetails (callPackage ./coolercontrold.nix { }); coolercontrol-gui = applySharedDetails (callPackage ./coolercontrol-gui.nix { }); coolercontrol-liqctld = applySharedDetails (callPackage ./coolercontrol-liqctld.nix { }); }