Commit f2529324d865

Vincent Demeester <vincent@sbr.pm>
2021-07-23 10:38:50
nix/packages: add adi1090x-plymouth themes
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
1 parent 44bc146
Changed files (3)
nix
packages
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
+  '';
+}
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 { };
 }
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 { })