home

My NixOS systems configurations.
Log | Files | Refs | LICENSE

default.nix (834B)


      1 { pkgs, fetchFromGitHub }:
      2 
      3 pkgs.stdenv.mkDerivation rec {
      4   pname = "adi1090x-plymouth";
      5   version = "0.0.1";
      6 
      7   src = fetchFromGitHub {
      8     owner = "adi1090x";
      9     repo = "plymouth-themes";
     10     rev = "bf2f570bee8e84c5c20caac353cbe1d811a4745f";
     11     sha256 = "sha256-VNGvA8ujwjpC2rTVZKrXni2GjfiZk7AgAn4ZB4Baj2k=";
     12   };
     13 
     14   buildInputs = [
     15     pkgs.git
     16   ];
     17 
     18   configurePhase = ''
     19     mkdir -p $out/share/plymouth/themes/
     20   '';
     21 
     22   buildPhase = ''
     23   '';
     24 
     25   installPhase = ''
     26     cp -r pack_1/cuts $out/share/plymouth/themes
     27     cp -r pack_2/{hexagon,green_loader,deus_ex} $out/share/plymouth/themes
     28     cp -r pack_4/{spinner_alt,sphere} $out/share/plymouth/themes
     29     for p in $out/share/plymouth/themes/*; do
     30       theme=$(basename $p)
     31       sed -i "s@\/usr\/@$out\/@" $out/share/plymouth/themes/$theme/$theme.plymouth
     32     done
     33   '';
     34 }