Working nix package for theme
This commit is contained in:
parent
8aa55d2b83
commit
e9b0654a85
|
@ -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
10
overlay.nix
Normal 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; };
|
||||
};
|
||||
}
|
16
pkgs/keycloak-theme-pub-solar.nix
Normal file
16
pkgs/keycloak-theme-pub-solar.nix
Normal 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/
|
||||
'';
|
||||
}
|
Loading…
Reference in a new issue