nix all the things
1{
2 lib,
3 rustPlatform,
4 fetchFromGitHub,
5 pkg-config,
6 sqlite,
7}:
8rustPlatform.buildRustPackage rec {
9 pname = "http-nu";
10 version = "0.4.6";
11
12 src = fetchFromGitHub {
13 owner = "cablehead";
14 repo = "http-nu";
15 rev = "v${version}";
16 hash = "sha256-C2pB66PomtQuKUJAvcEIxMsdOkMQQokmxO9uajbaxOQ=";
17 };
18
19 cargoHash = "sha256-8FEkhsc6x9MqawtEgqQp4t2Eu5E6If3YPZ6Ax34jk2A=";
20
21 nativeBuildInputs = [
22 pkg-config
23 rustPlatform.bindgenHook
24 ];
25
26 doCheck = false;
27
28 buildInputs = [ sqlite ];
29
30 meta = {
31 description = "The surprisingly performant, Nushell-scriptable HTTP server that fits in your back pocket";
32 homepage = "https://github.com/cablehead/http-nu";
33 license = lib.licenses.mit;
34 mainProgram = "http-nu";
35 };
36}