meta(flake.nix): Add overlays as outputs

Should make it easier for other repositories to use the overlays from
this repository.
This commit is contained in:
Donovan Glover 2024-03-31 06:19:16 -04:00
parent efec942be0
commit 18acfd0749
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65
6 changed files with 69 additions and 78 deletions

View File

@ -37,5 +37,12 @@
osu-backgrounds = callPackage ./packages/osu-backgrounds.nix { }; osu-backgrounds = callPackage ./packages/osu-backgrounds.nix { };
webp-thumbnailer = callPackage ./packages/webp-thumbnailer.nix { }; webp-thumbnailer = callPackage ./packages/webp-thumbnailer.nix { };
}; };
overlays = {
base16-schemes = import ./overlays/base16-schemes.nix;
kitty = import ./overlays/kitty.nix;
srb2 = import ./overlays/srb2.nix;
zola = import ./overlays/zola.nix;
};
}; };
} }

View File

@ -1,25 +1,21 @@
{ (final: prev: {
nixpkgs.overlays = [ base16-schemes = prev.base16-schemes.overrideAttrs (oldAttrs: {
(final: prev: { version = "unstable-2023-05-02";
base16-schemes = prev.base16-schemes.overrideAttrs (oldAttrs: {
version = "unstable-2023-05-02";
src = prev.fetchFromGitHub { src = prev.fetchFromGitHub {
owner = "tinted-theming"; owner = "tinted-theming";
repo = "base16-schemes"; repo = "base16-schemes";
rev = "9a4002f78dd1094c123169da243680b2fda3fe69"; rev = "9a4002f78dd1094c123169da243680b2fda3fe69";
hash = "sha256-AngNF++RZQB0l4M8pRgcv66pAcIPY+cCwmUOd+RBJKA="; hash = "sha256-AngNF++RZQB0l4M8pRgcv66pAcIPY+cCwmUOd+RBJKA=";
}; };
installPhase = '' installPhase = ''
runHook preInstall runHook preInstall
mkdir -p $out/share/themes/ mkdir -p $out/share/themes/
install *.yaml $out/share/themes/ install *.yaml $out/share/themes/
runHook postInstall runHook postInstall
''; '';
}); });
}) })
];
}

View File

@ -1,8 +1,8 @@
{ {
imports = [ nixpkgs.overlays = [
./base16-schemes.nix (import ./base16-schemes.nix)
./kitty.nix (import ./kitty.nix)
./srb2.nix (import ./srb2.nix)
./zola.nix (import ./zola.nix)
]; ];
} }

View File

@ -1,26 +1,22 @@
{ (final: prev: {
nixpkgs.overlays = [ kitty = prev.kitty.overrideAttrs (oldAttrs: rec {
(final: prev: { version = "0.31.0";
kitty = prev.kitty.overrideAttrs (oldAttrs: rec {
version = "0.31.0";
src = prev.fetchFromGitHub { src = prev.fetchFromGitHub {
owner = "kovidgoyal"; owner = "kovidgoyal";
repo = "kitty"; repo = "kitty";
rev = "refs/tags/v${version}"; rev = "refs/tags/v${version}";
hash = "sha256-VWWuC4T0pyTgqPNm0gNL1j3FShU5b8S157C1dKLon1g="; hash = "sha256-VWWuC4T0pyTgqPNm0gNL1j3FShU5b8S157C1dKLon1g=";
}; };
goModules = (prev.buildGoModule { goModules = (prev.buildGoModule {
pname = "kitty-go-modules"; pname = "kitty-go-modules";
inherit src version; inherit src version;
vendorHash = "sha256-OyZAWefSIiLQO0icxMIHWH3BKgNas8HIxLcse/qWKcU="; vendorHash = "sha256-OyZAWefSIiLQO0icxMIHWH3BKgNas8HIxLcse/qWKcU=";
}).goModules; }).goModules;
patches = (oldAttrs.patches or [ ]) ++ [ patches = (oldAttrs.patches or [ ]) ++ [
../patches/kitty-wlroots-copying-fix.patch ../patches/kitty-wlroots-copying-fix.patch
]; ];
}); });
}) })
];
}

View File

@ -1,20 +1,16 @@
{ (final: prev: {
nixpkgs.overlays = [ srb2 = prev.srb2.overrideAttrs (oldAttrs: {
(final: prev: { desktopItems = [
srb2 = prev.srb2.overrideAttrs (oldAttrs: { (prev.makeDesktopItem rec {
desktopItems = [ name = "Sonic Robo Blast 2";
(prev.makeDesktopItem rec { exec = oldAttrs.pname;
name = "Sonic Robo Blast 2"; icon = oldAttrs.pname;
exec = oldAttrs.pname; comment = oldAttrs.meta.description;
icon = oldAttrs.pname; desktopName = name;
comment = oldAttrs.meta.description; genericName = name;
desktopName = name; startupWMClass = ".srb2-wrapped";
genericName = name; categories = [ "Game" ];
startupWMClass = ".srb2-wrapped"; })
categories = [ "Game" ]; ];
}) });
]; })
});
})
];
}

View File

@ -1,9 +1,5 @@
{ (final: prev: {
nixpkgs.overlays = [ zola = prev.zola.overrideAttrs (oldAttrs: {
(final: prev: { patches = (oldAttrs.patches or [ ]) ++ [ ../patches/zola-serve-fix.patch ];
zola = prev.zola.overrideAttrs (oldAttrs: { });
patches = (oldAttrs.patches or [ ]) ++ [ ../patches/zola-serve-fix.patch ]; })
});
})
];
}