1
0
Fork 0
minindie/flake.nix

45 lines
1.3 KiB
Nix
Raw Permalink Normal View History

2024-10-04 20:26:53 +00:00
{
2024-10-05 21:47:29 +00:00
description = "Nix flake to use minindie static files as a theme for website deployment";
2024-10-04 20:26:53 +00:00
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, flake-utils, ... }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = nixpkgs.legacyPackages.${system};
in {
packages = rec {
2024-10-05 21:47:29 +00:00
minindieTheme = pkgs.stdenv.mkDerivation {
pname = "minindie-theme";
2024-10-04 20:26:53 +00:00
version = "1.0.0";
src = ./.;
installPhase = ''
2024-10-05 21:47:29 +00:00
mkdir -p $out/themes/minindie
cp -r archetypes theme.toml layouts static $out/themes/minindie
2024-10-04 20:26:53 +00:00
'';
meta = with pkgs.lib; {
2024-10-05 21:47:29 +00:00
description = "Static files for the minindie theme to be used in the website deployment";
2024-10-04 20:26:53 +00:00
homepage = "https://your-homepage-url";
license = licenses.mit;
maintainers = [ maintainers.yourname ];
platforms = platforms.unix;
};
};
};
2024-10-05 21:47:29 +00:00
defaultPackage.${system} = self.packages.${system}.minindieTheme;
2024-10-04 20:26:53 +00:00
apps = rec {
2024-10-05 21:47:29 +00:00
minindieTheme = flake-utils.lib.mkApp { drv = self.packages.${system}.minindieTheme; };
default = minindieTheme;
2024-10-04 20:26:53 +00:00
};
}
);
}