caaard/flake.nix

29 lines
663 B
Nix
Raw Normal View History

2022-12-20 13:30:02 +00:00
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem(system:
let
pkgs = import nixpkgs {
inherit system;
};
inherit (pkgs) lib;
in
{
packages.default = pkgs.stdenv.mkDerivation rec {
name = "Caaard";
src = ./.;
phases = "installPhase";
installPhase = ''
mkdir -p $out/assets
cp $src/index.html $out/
cp $src/assets/* $out/assets/
'';
};
}
);
}