mirror of
https://github.com/firewalkwithm3/plymouth-theme-muskduck.git
synced 2024-11-21 18:51:50 +08:00
45 lines
1.1 KiB
Nix
45 lines
1.1 KiB
Nix
|
{
|
||
|
description = "plymouth-theme-muskduck";
|
||
|
|
||
|
inputs = {
|
||
|
nixpkgs = {
|
||
|
url = "github:nixos/nixpkgs/nixos-unstable";
|
||
|
};
|
||
|
flake-utils = {
|
||
|
url = "github:numtide/flake-utils";
|
||
|
};
|
||
|
};
|
||
|
|
||
|
outputs = { nixpkgs, flake-utils, ... }: flake-utils.lib.eachDefaultSystem (system:
|
||
|
let
|
||
|
pkgs = import nixpkgs {
|
||
|
inherit system;
|
||
|
};
|
||
|
plymouth-theme-muskduck = (with pkgs; stdenvNoCC.mkDerivation {
|
||
|
pname = "plymouth-theme-muskduck";
|
||
|
version = "1.0.0";
|
||
|
src = ./.;
|
||
|
installPhase = ''
|
||
|
mkdir -p $out/share/plymouth/themes/muskduck
|
||
|
cp -r $src/{*.plymouth,*.script,*.png} $out/share/plymouth/themes/muskduck/
|
||
|
substituteInPlace $out/share/plymouth/themes/muskduck/*.plymouth --replace '@IMAGES@' "$out/share/plymouth/themes/muskduck"
|
||
|
'';
|
||
|
}
|
||
|
);
|
||
|
in rec {
|
||
|
defaultApp = flake-utils.lib.mkApp {
|
||
|
drv = defaultPackage;
|
||
|
};
|
||
|
defaultPackage = plymouth-theme-muskduck;
|
||
|
devShell = pkgs.mkShell {
|
||
|
buildInputs = [
|
||
|
plymouth-theme-muskduck
|
||
|
];
|
||
|
};
|
||
|
}
|
||
|
);
|
||
|
}
|
||
|
|
||
|
|
||
|
|