home

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit f2529324d8655fa498c4133e40beee6217ca7bb3
parent 44bc1461f095792dcee55cc740c12a00daa00406
Author: Vincent Demeester <vincent@sbr.pm>
Date:   Fri, 23 Jul 2021 10:38:50 +0200

nix/packages: add adi1090x-plymouth themes

Signed-off-by: Vincent Demeester <vincent@sbr.pm>

Diffstat:
Mflake.nix | 2++
Anix/packages/adi1090x-plymouth/default.nix | 32++++++++++++++++++++++++++++++++
Mnix/packages/default.nix | 1+
3 files changed, 35 insertions(+), 0 deletions(-)

diff --git a/flake.nix b/flake.nix @@ -373,6 +373,8 @@ ram = pkgs.callPackage ./nix/packages/ram { }; systemd-email = pkgs.callPackage ./nix/packages/systemd-email { }; + adi1090x-plymouth = pkgs.callPackage ./nix/packages/adi1090x-plymouth { }; + batzconverter = pkgs.callPackage ./nix/packages/batzconverter { }; # Tekton inherit (pkgs.callPackage ./nix/packages/tkn { }) diff --git a/nix/packages/adi1090x-plymouth/default.nix b/nix/packages/adi1090x-plymouth/default.nix @@ -0,0 +1,32 @@ +{ pkgs }: + +pkgs.stdenv.mkDerivation rec { + pname = "adi1090x-plymouth"; + version = "0.0.1"; + + src = builtins.fetchGit { + url = "https://github.com/adi1090x/plymouth-themes"; + }; + + buildInputs = [ + pkgs.git + ]; + + configurePhase = '' + mkdir -p $out/share/plymouth/themes/ + ''; + + buildPhase = '' + ''; + + installPhase = '' + cp -r pack_1/* $out/share/plymouth/themes + cp -r pack_2/* $out/share/plymouth/themes + cp -r pack_3/* $out/share/plymouth/themes + cp -r pack_4/* $out/share/plymouth/themes + for p in $out/share/plymouth/themes/*; do + theme=$(basename $p) + sed -i "s@\/usr\/@$out\/@" $out/share/plymouth/themes/$theme/$theme.plymouth + done + ''; +} diff --git a/nix/packages/default.nix b/nix/packages/default.nix @@ -132,4 +132,5 @@ rec { hidetopbar = pkgs.callPackage ./gnome/extensions/hide-top-bar { }; noannoyance = pkgs.callPackage ./gnome/extensions/noannoyance { }; nightthemeswitcher = pkgs.callPackage ./gnome/extensions/nightthemeswitcher { }; + adi1090x-plymouth = pkgs.callPackage ./adi1090x-plymouth { }; }