Merge pull request #220505 from lilyinstarlight/pkg/nixos-bgrt-plymouth

nixos-bgrt-plymouth: init at unstable-2023-03-10
This commit is contained in:
Sandro 2023-04-13 02:42:05 +02:00 committed by GitHub
commit 6e9c30890e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 42 additions and 0 deletions

View file

@ -0,0 +1,40 @@
{ lib
, stdenv
, fetchFromGitHub
, unstableGitUpdater
}:
stdenv.mkDerivation {
name = "nixos-bgrt-plymouth";
version = "unstable-2023-03-10";
src = fetchFromGitHub {
repo = "plymouth-theme-nixos-bgrt";
owner = "helsinki-systems";
rev = "0771e04f13b6b908d815b506472afb1c9a2c81ae";
hash = "sha256-aF4Ro5z4G6LS40ENwFDH8CgV7ldfhzqekuSph/DMQoo=";
};
dontConfigure = true;
dontBuild = true;
installPhase = ''
runHook preInstall
mkdir -p $out/share/plymouth/themes/nixos-bgrt
cp -r $src/{*.plymouth,images} $out/share/plymouth/themes/nixos-bgrt/
substituteInPlace $out/share/plymouth/themes/nixos-bgrt/*.plymouth --replace '@IMAGES@' "$out/share/plymouth/themes/nixos-bgrt/images"
runHook postInstall
'';
passthru.updateScript = unstableGitUpdater { };
meta = with lib; {
description = "BGRT theme with a spinning NixOS logo";
homepage = "https://github.com/helsinki-systems/plymouth-theme-nixos-bgrt";
license = licenses.mit;
maintainers = with maintainers; [ lilyinstarlight ];
platforms = platforms.all;
};
}

View file

@ -38824,6 +38824,8 @@ with pkgs;
nixos-icons = callPackage ../data/misc/nixos-artwork/icons.nix { };
nixos-grub2-theme = callPackage ../data/misc/nixos-artwork/grub2-theme.nix { };
nixos-bgrt-plymouth = callPackage ../data/themes/nixos-bgrt-plymouth { };
nixos-container = callPackage ../tools/virtualization/nixos-container { };
nixos-generators = callPackage ../tools/nix/nixos-generators { };