mezza.biz/flake.nix

51 lines
1.2 KiB
Nix
Raw Normal View History

2023-02-25 19:38:19 +00:00
{
2024-02-20 16:17:50 +00:00
description = "mezza.biz";
2023-02-25 19:38:19 +00:00
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
2024-08-24 19:37:56 +00:00
flake-parts.url = "github:hercules-ci/flake-parts";
2023-02-25 19:38:19 +00:00
devshell.url = "github:numtide/devshell";
devshell.inputs.flake-utils.follows = "flake-utils";
devshell.inputs.nixpkgs.follows = "nixpkgs";
};
2024-08-24 19:37:56 +00:00
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 {
2024-08-24 19:09:33 +00:00
name = "mezza.biz";
version = "0.0.1";
src = ./.;
installPhase = ''
mkdir -p $out
2024-08-24 19:37:56 +00:00
cp -r index.html assets scripts $out/
2024-08-24 19:09:33 +00:00
'';
};
2024-08-24 19:37:56 +00:00
in {
packages.default = mezza-biz;
packages.mezza-biz = mezza-biz;
overlayAttrs = {
inherit (config.packages) mezza-biz;
};
devshells.default = {
packages = with pkgs; [
2023-02-25 19:38:19 +00:00
deno
];
2024-08-24 19:37:56 +00:00
env = {
NVIM_USE_DENOLS = 1;
};
2023-02-25 19:38:19 +00:00
};
2024-08-24 19:37:56 +00:00
};
};
2023-02-25 19:38:19 +00:00
}