From 45076f00f9bd8a9aebf0166200fd6e8d23ebafd7 Mon Sep 17 00:00:00 2001 From: alex Date: Sun, 18 Jun 2023 18:09:09 -0400 Subject: [PATCH] change --- flake.nix | 48 +++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 47 insertions(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index ea6109d..5677929 100644 --- a/flake.nix +++ b/flake.nix @@ -4,6 +4,52 @@ }; outputs = { self, nixpkgs }: { - packages.x86_64-linux.theme-platinum9 = import ./platinum9/default.nix; + + overlay = final: prev: { + theme-platinum9 = with final; stdenv.mkDerivation { + pname = "theme-platinum9"; + version = "d3d2080c1a2d5772714d089d1dc1daeeb41db008"; + + src = fetchFromGitea { + domain = "git.atauno.com"; + owner = "atau"; + repo = "Platinum9"; + rev = "d3d2080c1a2d5772714d089d1dc1daeeb41db008"; + sha256 = "0c9mhrs95ahz37djrv176vn41ywvj26ilwmnr1h9171giv6hid77"; + }; + + # nativeBuildInputs = [ autoreconfHook pkg-config ]; + + # propagatedUserEnvPkgs = [ gtk-engine-murrine ]; + + # configureFlags = [ "--disable-unity" ]; + + postInstall = '' + mkdir -p $out + echo "heeeey" > $out/test.txt + ls -la > $out/test.txt + cp -r * $out + # mkdir -p $out/share/plank/themes + # cp -r extra/*-Plank $out/share/plank/themes + # mkdir -p $out/share/doc/$pname/Chrome + # cp -r extra/Chrome/*.crx $out/share/doc/$pname/Chrome + # cp -r extra/Firefox $out/share/doc/$pname + # cp AUTHORS README.md $out/share/doc/$pname/ + ''; + + # meta = with lib; { + # inherit (src.meta) homepage; + # description = "Theme for GTK 3, GTK 2, Gnome-Shell, and Cinnamon"; + # license = licenses.gpl3; + # platforms = platforms.unix; + # maintainers = with maintainers; [ romildo ]; + # }; + }; + }; + + packages.x86_64-linux.theme-platinum9 = (import nixpkgs { + system = "x86_64-linux"; + overlays = [ self.overlay ]; + }).theme-platinum9; }; }