nixpkgs/pkgs/by-name/th/themix-gui/package.nix
Silvan Mosberger 4f0dadbf38 treewide: format all inactive Nix files
After final improvements to the official formatter implementation,
this commit now performs the first treewide reformat of Nix files using it.
This is part of the implementation of RFC 166.

Only "inactive" files are reformatted, meaning only files that
aren't being touched by any PR with activity in the past 2 months.
This is to avoid conflicts for PRs that might soon be merged.
Later we can do a full treewide reformat to get the rest,
which should not cause as many conflicts.

A CI check has already been running for some time to ensure that new and
already-formatted files are formatted, so the files being reformatted here
should also stay formatted.

This commit was automatically created and can be verified using

    nix-build a08b3a4d19.tar.gz \
      --argstr baseRev b32a094368
    result/bin/apply-formatting $NIXPKGS_PATH
2024-12-10 20:26:33 +01:00

80 lines
1.8 KiB
Nix

{
lib,
stdenv,
sassc,
gdk-pixbuf,
glib,
gobject-introspection,
librsvg,
gtk3,
python3,
fetchFromGitHub,
wrapGAppsHook3,
}:
let
py = python3.withPackages (p: [
p.pygobject3
]);
pname = "themix-gui";
version = "1.15.1";
in
stdenv.mkDerivation {
inherit pname version;
src = fetchFromGitHub {
owner = "themix-project";
repo = "themix-gui";
rev = version;
hash = "sha256-xFtwNx1c7Atb+9yorZhs/uVkkoxbZiELJ0SZ88L7KMs=";
fetchSubmodules = true;
};
nativeBuildInputs = [
gobject-introspection
py
sassc
wrapGAppsHook3
];
buildInputs = [
gdk-pixbuf
glib
gtk3
librsvg
py
];
postPatch = ''
substituteInPlace gui.sh packaging/bin/{oomox,themix}-gui --replace python3 ${lib.getExe py}
'';
dontBuild = true;
installPhase = ''
runHook preInstall
make DESTDIR=/ APPDIR=$out/opt/oomox PREFIX=$out install_gui install_import_xresources install_export_xresources
python -O -m compileall $out/opt/oomox/oomox_gui -d /opt/oomox/oomox_gui
runHook postInstall
'';
meta = {
description = "Graphical application for designing themes and exporting them using plugins";
longDescription = ''
Graphical application for generating different color variations of
Oomox (Numix-based) and Materia (ex-Flat-Plat) themes (GTK2, GTK3,
Cinnamon, GNOME, Openbox, Xfwm), Archdroid, Gnome-Color, Numix, Papirus
and Suru++ icon themes. Have a hack for HiDPI in gtk2. Its Base16 plugin
also allowing a lot of app themes support like Alacritty, Emacs, GTK4,
KDE, VIM and many more.
'';
homepage = "https://github.com/themix-project/themix-gui";
license = lib.licenses.gpl3Only;
mainProgram = "themix-gui";
maintainers = [ ];
platforms = lib.platforms.linux;
};
}