use simple-http-server fork

This commit is contained in:
Anton-4 2025-01-15 14:14:23 +01:00
parent 28a75611fc
commit 64fc86bb8c
No known key found for this signature in database
GPG key ID: 0971D718C0A9B937
2 changed files with 22 additions and 2 deletions

View file

@ -38,7 +38,12 @@
let
overlays = [ (import rust-overlay) ]
++ (if system == "x86_64-linux" then [ nixgl.overlay ] else [ ]);
++ (if system == "x86_64-linux" then [ nixgl.overlay ] else [ ])
++ [(final: prev: {
# using a custom simple-http-server fork because of github.com/TheWaWaR/simple-http-server/issues/111
# the server is used for local testing of the roc website
simple-http-server = final.callPackage ./nix/simple-http-server.nix { };
})];
pkgs = import nixpkgs { inherit system overlays; };
rocBuild = import ./nix { inherit pkgs; };
@ -105,7 +110,6 @@
libiconv # for examples/gui
libxkbcommon # for examples/gui
cargo-criterion # for benchmarks
simple-http-server # to view roc website when trying out edits
wasm-pack # for repl_wasm
jq # used in several bash scripts
cargo-nextest # used to give more info for segfaults for gen tests

View file

@ -0,0 +1,16 @@
{ rustPlatform, fetchFromGitHub }:
rustPlatform.buildRustPackage {
pname = "simple-http-server";
version = "0.1.0"; # adjust version as needed
src = fetchFromGitHub {
owner = "Anton-4";
repo = "simple-http-server";
rev = "f3089e5736a1e8abdb69ba9e7618fe5e518a2df0";
};
cargoLock = {
lockFile = "${src}/Cargo.lock";
};
}