2023-07-06 00:47:43 +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 = "ash-stories";
|
|
|
|
src = ./.;
|
|
|
|
phases = "installPhase";
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/src
|
|
|
|
mkdir -p $out/stories
|
2023-07-06 14:17:15 +00:00
|
|
|
cp $src/index.html $out/
|
2023-07-06 00:47:43 +00:00
|
|
|
cp $src/stories/* $out/stories/
|
|
|
|
cp $src/src/*.js $out/src/
|
|
|
|
cp $src/src/*.css $out/src/
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
}
|
|
|
|
);
|
|
|
|
}
|