mirror of
https://github.com/AdisonCavani/distro-grub-themes.git
synced 2025-06-02 21:52:34 +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 }:
|
{ stdenvNoCC, lib, theme }:
|
||||||
let
|
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
|
in
|
||||||
assert builtins.any (x: x == theme) themes;
|
assert builtins.any (x: x == theme) themes;
|
||||||
|
|
||||||
stdenvNoCC.mkDerivation {
|
stdenvNoCC.mkDerivation {
|
||||||
name = "distro-grub-themes";
|
name = "distro-grub-themes";
|
||||||
src = ./.;
|
src = ./../.;
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
mkdir -p $out
|
mkdir -p $out
|
|
@ -2,7 +2,7 @@
|
||||||
with lib;
|
with lib;
|
||||||
let
|
let
|
||||||
cfg = config.distro-grub-themes;
|
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
|
in
|
||||||
{
|
{
|
||||||
options.distro-grub-themes = {
|
options.distro-grub-themes = {
|
|
@ -20,20 +20,20 @@
|
||||||
(theme:
|
(theme:
|
||||||
let name = (builtins.head (pkgs.lib.strings.splitString "." theme)); in {
|
let name = (builtins.head (pkgs.lib.strings.splitString "." theme)); in {
|
||||||
name = name + "-grub-theme";
|
name = name + "-grub-theme";
|
||||||
value = pkgs.callPackage ./default.nix { theme = name; };
|
value = pkgs.callPackage ./build/default.nix { theme = name; };
|
||||||
})
|
})
|
||||||
themeNames);
|
themeNames);
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
packages = {
|
packages = {
|
||||||
default = pkgs.callPackage ./default.nix { theme = "nixos"; };
|
default = pkgs.callPackage ./build/default.nix { theme = "nixos"; };
|
||||||
} // themePackages;
|
} // themePackages;
|
||||||
|
|
||||||
devShells.default = pkgs.mkShell {
|
devShells.default = pkgs.mkShell {
|
||||||
nativeBuildInputs = with pkgs; [ nixd nixpkgs-fmt act jq ];
|
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