Working nix package for theme

feat/theme-v2
Benjamin Bädorf 2022-11-27 05:16:39 +01:00
parent 8aa55d2b83
commit e9b0654a85
No known key found for this signature in database
GPG Key ID: 4406E80E13CD656C
3 changed files with 35 additions and 0 deletions

View File

@ -12,9 +12,18 @@
};
outputs = { self, flake-utils, devshell, nixpkgs }:
let
pkgs = import nixpkgs {
overlays = [
devshell.overlay
(import ./overlay.nix)
];
};
in
flake-utils.lib.simpleFlake {
inherit self nixpkgs;
name = "keycloak-theme-pub-solar";
overlay = ./overlay.nix;
preOverlays = [ devshell.overlay ];
shell = { pkgs }:
let

10
overlay.nix Normal file
View File

@ -0,0 +1,10 @@
final: prev:
let
pkgs = final;
in
{
# this key should be the same as the simpleFlake name attribute.
keycloak-theme-pub-solar = {
keycloak-theme-pub-solar = import ./pkgs/keycloak-theme-pub-solar.nix { inherit pkgs; };
};
}

View File

@ -0,0 +1,16 @@
{ pkgs, ... }:
pkgs.stdenv.mkDerivation {
pname = "keycloak-theme-pub-solar";
version = "0.0.0";
src = pkgs.lib.cleanSource ../.;
installPhase = ''
mkdir $out
cp -r account $out/
cp -r login $out/
cp -r admin $out/
cp -r common $out/
cp -r welcome $out/
cp -r email $out/
'';
}