momo.coop/flake.nix

47 lines
1 KiB
Nix

{
description = "devs & ops environment for nix'ing with triton";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
flake-parts.url = "github:hercules-ci/flake-parts";
};
outputs = inputs@{ self, ... }:
inputs.flake-parts.lib.mkFlake { inherit inputs; } {
systems = [
"x86_64-linux"
"aarch64-linux"
];
imports = [
inputs.flake-parts.flakeModules.easyOverlay
];
perSystem =
args@{
system,
pkgs,
config,
lib,
...
}:
{
packages = {
momo-koeln = pkgs.stdenv.mkDerivation {
name = "momo.koeln";
version = "1.0.0";
src = ./.;
installPhase = ''
mkdir -p $out
cp -r index.html $out/
'';
};
};
overlayAttrs = config.packages;
devShells.default = pkgs.mkShell {
buildInputs = [ ];
};
};
};
}