modules(home/base16-gtk): init

This commit is contained in:
Kat Inskip 2022-07-29 10:04:20 -07:00
parent 5870611776
commit a130807b83
Signed by: kat
GPG key ID: 465E64DECEA8CF0F
7 changed files with 315 additions and 7 deletions

View file

@ -10,4 +10,8 @@ final: prev: {
waybar-konawall = final.callPackage ./waybar-konawall { };
hedgedoc-cli = final.callPackage ./hedgedoc-cli.nix { };
gensokyoZone = final.callPackage ./gensokyoZone { };
oomox = final.callPackage ./oomox.nix { };
wezterm = final.callPackage ./wezterm {
inherit (final.darwin.apple_sdk.frameworks) Cocoa CoreGraphics Foundation;
};
}

64
overlays/local/oomox.nix Normal file
View file

@ -0,0 +1,64 @@
{ gnome3
, stdenv
, gdk-pixbuf
, glib
, libxml2
, bc
, librsvg
, sassc
, inkscape
, optipng
, python3
, gtk3
, gobject-introspection
, gtk-engine-murrine
, fetchFromGitHub
, wrapGAppsHook
, makeWrapper
, runtimeShell
}:
python3.pkgs.buildPythonApplication rec {
format = "other";
name = "oomox";
src = fetchFromGitHub {
owner = "themix-project";
repo = "oomox";
rev = "1.14";
sha256 = "0zk2q0z0n64kl6my60vkq11gp4mc442jxqcwbi4kl108242izpjv";
fetchSubmodules = true;
};
dontWrapGApps = true;
dontPatchELF = true;
dontFixup = true;
doCheck = false;
strictDeps = false;
buildPhase = ''
true
'';
nativeBuildInputs = [ makeWrapper wrapGAppsHook libxml2 gobject-introspection glib bc ];
propagatedBuildInputs = with python3.pkgs; [
gnome3.gnome-themes-extra gdk-pixbuf librsvg sassc inkscape optipng
gobject-introspection
pygobject3
python3
gtk-engine-murrine
pystache
pyyaml
gtk3
bc
];
propagatedUserEnvPkgs = [ gtk-engine-murrine ];
installPhase = ''
mkdir $out
gappsWrapperArgsHook
make install DESTDIR=/ PREFIX=$out APPDIR=$out/lib/share/oomox
for prog in $out/bin/*; do
sed -i "s/cd /true /" $prog
wrapProgram $prog "''${gappsWrapperArgs[@]}" --prefix PATH : "${bc}/bin:${python3}/bin" --prefix PYTHONPATH : "$out/lib/share/oomox:$PYTHONPATH"
done
#for script in $(find $out -name "change_color.sh"); do
# cp ${./script.sh} $script
#done
'';
}