1
0
Fork 0
minindie/flake.nix

44 lines
1.3 KiB
Nix
Raw Normal View History

2024-10-04 20:26:53 +00:00
{
description = "Nix flake to use indieweb static files as a theme for website deployment";
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 {
indiewebTheme = pkgs.stdenv.mkDerivation {
pname = "indieweb-theme";
version = "1.0.0";
src = ./.;
installPhase = ''
mkdir -p $out/themes/indieweb
cp -r * $out/themes/indieweb
'';
meta = with pkgs.lib; {
description = "Static files for the indieweb theme to be used in the website deployment";
homepage = "https://your-homepage-url";
license = licenses.mit;
maintainers = [ maintainers.yourname ];
platforms = platforms.unix;
};
};
};
defaultPackage.${system} = self.packages.${system}.indiewebTheme;
apps = rec {
indiewebTheme = flake-utils.lib.mkApp { drv = self.packages.${system}.indiewebTheme; };
default = indiewebTheme;
};
}
);
}