mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-03 08:34:33 +00:00
use simple-http-server fork
This commit is contained in:
parent
28a75611fc
commit
64fc86bb8c
2 changed files with 22 additions and 2 deletions
|
@ -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
|
||||
|
|
16
nix/simple-http-server.nix
Normal file
16
nix/simple-http-server.nix
Normal 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";
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue