Loading pkgs/applications/misc/polychromatic/default.nix +24 −29 Original line number Diff line number Diff line { lib, fetchFromGitHub, bash, glib, gdk-pixbuf, gettext, imagemagick, ninja, meson, sassc, Loading @@ -29,22 +25,23 @@ python3Packages.buildPythonApplication rec { owner = "polychromatic"; repo = "polychromatic"; rev = "v${version}"; sha256 = "sha256-3Pt1Z8G0xDWlFD7LxJILPUifMBTN4OvPNHZv80umO1s="; hash = "sha256-3Pt1Z8G0xDWlFD7LxJILPUifMBTN4OvPNHZv80umO1s="; }; postPatch = '' patchShebangs scripts substituteInPlace scripts/build-styles.sh \ --replace '$(which sassc 2>/dev/null)' '${sassc}/bin/sassc' \ --replace '$(which sass 2>/dev/null)' '${sassc}/bin/sass' --replace-fail '$(which sassc 2>/dev/null)' '${sassc}/bin/sassc' \ --replace-fail '$(which sass 2>/dev/null)' '${sassc}/bin/sass' substituteInPlace polychromatic/paths.py \ --replace "/usr/share/polychromatic" "$out/share/polychromatic" --replace-fail "/usr/share/polychromatic" "$out/share/polychromatic" ''; preConfigure = '' scripts/build-styles.sh ''; nativeBuildInputs = with python3Packages; [ nativeBuildInputs = [ gettext gobject-introspection meson Loading @@ -57,9 +54,7 @@ python3Packages.buildPythonApplication rec { buildInputs = [ qt6.qtwayland ]; propagatedBuildInputs = with python3Packages; [ propagatedBuildInputs = with python3Packages; [ colorama colour openrazer Loading @@ -71,13 +66,12 @@ python3Packages.buildPythonApplication rec { openrazer-daemon ibus usbutils ] ++ [ ] ++ [ libayatana-appindicator psmisc ]; dontWrapGapps = true; dontWrapGApps = true; dontWrapQtApps = true; makeWrapperArgs = [ Loading @@ -95,5 +89,6 @@ python3Packages.buildPythonApplication rec { license = licenses.gpl3; platforms = platforms.linux; maintainers = with maintainers; [ evanjs ]; mainProgram = "polychromatic-controller"; }; } Loading
pkgs/applications/misc/polychromatic/default.nix +24 −29 Original line number Diff line number Diff line { lib, fetchFromGitHub, bash, glib, gdk-pixbuf, gettext, imagemagick, ninja, meson, sassc, Loading @@ -29,22 +25,23 @@ python3Packages.buildPythonApplication rec { owner = "polychromatic"; repo = "polychromatic"; rev = "v${version}"; sha256 = "sha256-3Pt1Z8G0xDWlFD7LxJILPUifMBTN4OvPNHZv80umO1s="; hash = "sha256-3Pt1Z8G0xDWlFD7LxJILPUifMBTN4OvPNHZv80umO1s="; }; postPatch = '' patchShebangs scripts substituteInPlace scripts/build-styles.sh \ --replace '$(which sassc 2>/dev/null)' '${sassc}/bin/sassc' \ --replace '$(which sass 2>/dev/null)' '${sassc}/bin/sass' --replace-fail '$(which sassc 2>/dev/null)' '${sassc}/bin/sassc' \ --replace-fail '$(which sass 2>/dev/null)' '${sassc}/bin/sass' substituteInPlace polychromatic/paths.py \ --replace "/usr/share/polychromatic" "$out/share/polychromatic" --replace-fail "/usr/share/polychromatic" "$out/share/polychromatic" ''; preConfigure = '' scripts/build-styles.sh ''; nativeBuildInputs = with python3Packages; [ nativeBuildInputs = [ gettext gobject-introspection meson Loading @@ -57,9 +54,7 @@ python3Packages.buildPythonApplication rec { buildInputs = [ qt6.qtwayland ]; propagatedBuildInputs = with python3Packages; [ propagatedBuildInputs = with python3Packages; [ colorama colour openrazer Loading @@ -71,13 +66,12 @@ python3Packages.buildPythonApplication rec { openrazer-daemon ibus usbutils ] ++ [ ] ++ [ libayatana-appindicator psmisc ]; dontWrapGapps = true; dontWrapGApps = true; dontWrapQtApps = true; makeWrapperArgs = [ Loading @@ -95,5 +89,6 @@ python3Packages.buildPythonApplication rec { license = licenses.gpl3; platforms = platforms.linux; maintainers = with maintainers; [ evanjs ]; mainProgram = "polychromatic-controller"; }; }