stories/flake.nix
Ashhhleyyy b4c235834a
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
fix: include index.html in build
2023-07-06 15:17:15 +01:00

31 lines
774 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 = "ash-stories";
src = ./.;
phases = "installPhase";
installPhase = ''
mkdir -p $out/src
mkdir -p $out/stories
cp $src/index.html $out/
cp $src/stories/* $out/stories/
cp $src/src/*.js $out/src/
cp $src/src/*.css $out/src/
'';
};
}
);
}