feat(pkgs/keycloak-theme-keywind): add package

This commit is contained in:
Michael Thomas 2024-05-07 20:33:27 -04:00
parent c849583f7a
commit b34a820a9e
3 changed files with 30 additions and 1 deletions

View File

@ -53,7 +53,13 @@
darwin,
home-manager,
...
} @ inputs: {
} @ inputs: let
forAllSystems = nixpkgs.lib.genAttrs utils.lib.defaultSystems;
in {
# Your custom packages
# Accessible through 'nix build', 'nix shell', etc
packages = forAllSystems (system: import ./pkgs nixpkgs.legacyPackages.${system});
# This repo's overlay plus any other overlays you use
# If you want to use packages from flakes that are not nixpkgs (such as NUR), add their overlays here.\
overlays = {

3
pkgs/default.nix Normal file
View File

@ -0,0 +1,3 @@
pkgs: {
keycloak-theme-keywind = pkgs.callPackage ./keywind {};
}

20
pkgs/keywind/default.nix Normal file
View File

@ -0,0 +1,20 @@
{
stdenv,
fetchFromGitHub,
}:
stdenv.mkDerivation {
pname = "keycloak-theme-keywind";
version = "0.0.1-dev";
src = fetchFromGitHub {
owner = "lukin";
repo = "keywind";
rev = "bdf966fdae0071ccd46dab4efdc38458a643b409";
hash = "sha256-8N+OQ6Yg9RKxqGd8kgsbvrYuVgol49bo/iJeIJXr3Sg=";
};
installPhase = ''
mkdir -p $out
cp -a theme/keywind/login $out
'';
}