51 lines
1.2 KiB
Nix
51 lines
1.2 KiB
Nix
{
|
|
description = "mezza.biz";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
|
|
|
flake-parts.url = "github:hercules-ci/flake-parts";
|
|
|
|
devshell.url = "github:numtide/devshell";
|
|
devshell.inputs.flake-utils.follows = "flake-utils";
|
|
devshell.inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
|
|
outputs = inputs@{ self, ... }:
|
|
inputs.flake-parts.lib.mkFlake { inherit inputs; } {
|
|
imports = [
|
|
inputs.flake-parts.flakeModules.easyOverlay
|
|
inputs.devshell.flakeModule
|
|
];
|
|
|
|
systems = [ "x86_64-linux" ];
|
|
|
|
perSystem = args@{ system, pkgs, lib, config, ... }: let
|
|
mezza-biz = pkgs.stdenv.mkDerivation {
|
|
name = "mezza.biz";
|
|
version = "0.0.1";
|
|
src = ./.;
|
|
installPhase = ''
|
|
mkdir -p $out
|
|
cp -r index.html assets scripts $out/
|
|
'';
|
|
};
|
|
in {
|
|
packages.default = mezza-biz;
|
|
packages.mezza-biz = mezza-biz;
|
|
overlayAttrs = {
|
|
inherit (config.packages) mezza-biz;
|
|
};
|
|
|
|
devshells.default = {
|
|
packages = with pkgs; [
|
|
deno
|
|
];
|
|
env = {
|
|
NVIM_USE_DENOLS = 1;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|