mirror of
https://github.com/AdisonCavani/distro-grub-themes.git
synced 2025-06-01 13:12:35 +02:00
chore(nix): move build files to build/
directory
This commit is contained in:
parent
6b9733172a
commit
768d066516
3 changed files with 6 additions and 6 deletions
|
@ -1,12 +1,12 @@
|
|||
{ stdenvNoCC, lib, theme }:
|
||||
let
|
||||
themes = builtins.map (theme: (builtins.head (lib.strings.splitString "." theme))) (builtins.attrNames (builtins.readDir ./assets/backgrounds));
|
||||
themes = builtins.map (theme: (builtins.head (lib.strings.splitString "." theme))) (builtins.attrNames (builtins.readDir ./../assets/backgrounds));
|
||||
in
|
||||
assert builtins.any (x: x == theme) themes;
|
||||
|
||||
stdenvNoCC.mkDerivation {
|
||||
name = "distro-grub-themes";
|
||||
src = ./.;
|
||||
src = ./../.;
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out
|
|
@ -2,7 +2,7 @@
|
|||
with lib;
|
||||
let
|
||||
cfg = config.distro-grub-themes;
|
||||
themes = builtins.map (theme: (builtins.head (lib.strings.splitString "." theme))) (builtins.attrNames (builtins.readDir ./assets/backgrounds));
|
||||
themes = builtins.map (theme: (builtins.head (lib.strings.splitString "." theme))) (builtins.attrNames (builtins.readDir ./../assets/backgrounds));
|
||||
in
|
||||
{
|
||||
options.distro-grub-themes = {
|
|
@ -20,20 +20,20 @@
|
|||
(theme:
|
||||
let name = (builtins.head (pkgs.lib.strings.splitString "." theme)); in {
|
||||
name = name + "-grub-theme";
|
||||
value = pkgs.callPackage ./default.nix { theme = name; };
|
||||
value = pkgs.callPackage ./build/default.nix { theme = name; };
|
||||
})
|
||||
themeNames);
|
||||
in
|
||||
{
|
||||
packages = {
|
||||
default = pkgs.callPackage ./default.nix { theme = "nixos"; };
|
||||
default = pkgs.callPackage ./build/default.nix { theme = "nixos"; };
|
||||
} // themePackages;
|
||||
|
||||
devShells.default = pkgs.mkShell {
|
||||
nativeBuildInputs = with pkgs; [ nixd nixpkgs-fmt act jq ];
|
||||
};
|
||||
|
||||
nixosModules.default = ./module.nix;
|
||||
nixosModules.default = ./build/module.nix;
|
||||
}
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue