mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-22 08:30:57 +00:00
plymouth-blahaj-theme: init at 1.0.0
This commit is contained in:
48
pkgs/by-name/pl/plymouth-blahaj-theme/package.nix
Normal file
48
pkgs/by-name/pl/plymouth-blahaj-theme/package.nix
Normal file
@@ -0,0 +1,48 @@
|
||||
{
|
||||
stdenvNoCC,
|
||||
fetchurl,
|
||||
lib,
|
||||
}:
|
||||
|
||||
stdenvNoCC.mkDerivation rec {
|
||||
pname = "plymouth-blahaj-theme";
|
||||
version = "1.0.0";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/190n/plymouth-blahaj/releases/download/v${version}/blahaj.tar.gz";
|
||||
sha256 = "sha256-JSCu/3SK1FlSiRwxnjQvHtPGGkPc6u/YjaoIvw0PU8A=";
|
||||
};
|
||||
|
||||
patchPhase = ''
|
||||
runHook prePatch
|
||||
|
||||
shopt -s extglob
|
||||
|
||||
# deal with all the non ascii stuff
|
||||
mv !(*([[:graph:]])) blahaj.plymouth
|
||||
sed -i 's/\xc3\xa5/a/g' blahaj.plymouth
|
||||
sed -i 's/\xc3\x85/A/g' blahaj.plymouth
|
||||
|
||||
runHook postPatch
|
||||
'';
|
||||
|
||||
dontBuild = true;
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
mkdir -p $out/share/plymouth/themes/blahaj
|
||||
cp * $out/share/plymouth/themes/blahaj
|
||||
find $out/share/plymouth/themes/ -name \*.plymouth -exec sed -i "s@\/usr\/@$out\/@" {} \;
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "Plymouth theme featuring IKEA's 1m soft toy shark";
|
||||
homepage = "https://github.com/190n/plymouth-blahaj";
|
||||
license = lib.licenses.mit;
|
||||
platforms = lib.platforms.linux;
|
||||
maintainers = with lib.maintainers; [ miampf ];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user