diff options
| author | Collin Williams <96917990+bluedragon1221@users.noreply.github.com> | 2024-10-24 20:03:03 -0500 |
|---|---|---|
| committer | Collin Williams <96917990+bluedragon1221@users.noreply.github.com> | 2024-10-24 20:03:03 -0500 |
| commit | 72685228a7aacd6daa44da3833ac2eaeb80d1e39 (patch) | |
| tree | e86bf47796f74a943fc810f89b36f100b799425e /flake.nix | |
| parent | 46f8080b710fd4ece1f1eb56418888f8991fe27d (diff) | |
move some stuff around
Diffstat (limited to 'flake.nix')
| -rw-r--r-- | flake.nix | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/flake.nix b/flake.nix deleted file mode 100644 index ca9af0d..0000000 --- a/flake.nix +++ /dev/null @@ -1,42 +0,0 @@ -{ - inputs = { - nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; - }; - - outputs = { nixpkgs, ... }: let - system = "x86_64-linux"; - pkgs = import nixpkgs { inherit system; }; - in { - packages.${system}.default = with pkgs; stdenv.mkDerivation { - name = "papa_stories"; - src = ./src; - buildInputs = with pkgs; [ - gnumake pandoc http-server - ]; - - buildPhase = '' - make BUILD_DIR=$out/build all - ''; - - installPhase = '' - mkdir -p $out/bin - cat <<EOF > $out/bin/start-server - #!/usr/bin/env bash - ${http-server}/bin/http-server $out/build -p 8001 -d false - EOF - chmod +x $out/bin/start-server - ''; - }; - - devShells.${system}.default = pkgs.mkShell { - buildInputs = with pkgs; [ - pandoc - http-server - shellcheck - checkmake - gnumake - ]; - }; - }; -} - |
