wfm/flake.nix
2023-03-02 12:56:08 +00:00

30 lines
722 B
Nix

{
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 = "wfm";
src = ./.;
phases = "installPhase";
installPhase = ''
mkdir -p $out/
cp -r $src/css/ $out/
cp -r $src/js/ $out/
cp -r $src/vendor/ $out/
cp $src/index.html $out/index.html
'';
};
}
);
}