plymouth-theme-xenia/flake.nix
2024-10-08 14:24:20 +08:00

45 lines
1.1 KiB
Nix

{
description = "plymouth-theme-xenia";
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-xenia = (with pkgs; stdenvNoCC.mkDerivation {
pname = "plymouth-theme-xenia";
version = "1.0.0";
src = ./.;
installPhase = ''
mkdir -p $out/share/plymouth/themes/xenia
cp -r $src/{*.plymouth,*.script,*.png} $out/share/plymouth/themes/xenia/
substituteInPlace $out/share/plymouth/themes/xenia/*.plymouth --replace '@IMAGES@' "$out/share/plymouth/themes/xenia"
'';
}
);
in rec {
defaultApp = flake-utils.lib.mkApp {
drv = defaultPackage;
};
defaultPackage = plymouth-theme-xenia;
devShell = pkgs.mkShell {
buildInputs = [
plymouth-theme-xenia
];
};
}
);
}