scim-docs/flake.nix
Hugo Renard cad5614aaa
All checks were successful
/ build (push) Successful in 22s
/ deploy (push) Successful in 3s
ci: add forgejo action
2024-09-23 17:00:50 +02:00

20 lines
674 B
Nix

{
description = "libre.sh SCIM website";
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.05";
inputs.flake-utils.url = "github:numtide/flake-utils";
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (system:
let pkgs = nixpkgs.legacyPackages.${system};
in {
packages.website = pkgs.stdenv.mkDerivation {
name = "website";
src = self;
buildPhase = "${pkgs.hugo}/bin/hugo --minify";
installPhase = "cp -r public $out";
};
defaultPackage = self.packages.${system}.website;
devShells.default = pkgs.mkShell { packages = [ pkgs.hugo ]; };
});
}