1{
2 lib,
3 rustPlatform,
4 fetchFromGitHub,
5 pkg-config,
6 curl,
7 openssl,
8}:
9
10rustPlatform.buildRustPackage (finalAttrs: {
11 pname = "elm-json";
12 version = "0.2.13";
13
14 src = fetchFromGitHub {
15 owner = "zwilias";
16 repo = "elm-json";
17 tag = "v${finalAttrs.version}";
18 hash = "sha256-pSt4ugP8r7s0ABT3Y9ZbWAG/ShsARtame2lTxXiCuws=";
19 };
20
21 cargoPatches = [ ./use-system-ssl.patch ];
22
23 nativeBuildInputs = [ pkg-config ];
24
25 buildInputs = [
26 curl
27 openssl
28 ];
29
30 cargoHash = "sha256-BnL//AHaSnsugtMEnSTynpMyeNt5N7L6PG2wdWDw1y4=";
31
32 # Tests perform networking and therefore can't work in sandbox
33 doCheck = false;
34
35 meta = {
36 description = "Install, upgrade and uninstall Elm dependencies";
37 mainProgram = "elm-json";
38 homepage = "https://github.com/zwilias/elm-json";
39 license = lib.licenses.mit;
40 maintainers = [ lib.maintainers.turbomack ];
41 };
42})