Allow standalone home-manager installation

This commit is contained in:
Leonardo Eugênio 2023-01-23 20:56:18 -03:00
parent 55a36b27e2
commit 7025bdae9e
6 changed files with 91 additions and 60 deletions

View file

@ -1,6 +1,7 @@
# Custom packages, that can be defined similarly to ones from nixpkgs
# You can build them using 'nix build .#example' or (legacy) 'nix-build -A example'
{ pkgs }: {
{ pkgs, inputs }: {
dzgui = pkgs.callPackage ./dzgui.nix { };
plymouth-theme-red = pkgs.callPackage ./plymouth-theme-red.nix { inherit inputs; };
}

View file

@ -0,0 +1,25 @@
{ pkgs, inputs }:
pkgs.stdenv.mkDerivation rec {
pname = "red-loader-plymouth";
version = "0.0.1";
src = inputs.plymouth-themes;
buildInputs = [
pkgs.git
];
configurePhase = ''
mkdir -p $out/share/plymouth/themes/
'';
buildPhase = ''
'';
installPhase = ''
cp -r pack_4/red_loader $out/share/plymouth/themes
cat pack_4/red_loader/red_loader.plymouth | sed "s@\/usr\/@$out\/@" > \
$out/share/plymouth/themes/red_loader/red_loader.plymouth
'';
}