02cf88bb76
GitOrigin-RevId: c4a0efdd5a728e20791b8d8d2f26f90ac228ee8d
39 lines
909 B
Nix
39 lines
909 B
Nix
{ lib
|
|
, curl
|
|
, rustPlatform
|
|
, fetchurl
|
|
, openssl
|
|
, stdenv
|
|
, pkg-config
|
|
, darwin
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "elm-json";
|
|
version = "0.2.12";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/zwilias/elm-json/archive/v${version}.tar.gz";
|
|
sha256 = "sha256:nlpxlPzWk3wwDgczuMI9T6DFY1YtQpQ1R4BhdPbzZBs=";
|
|
};
|
|
|
|
cargoPatches = [ ./elm-json.patch ];
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
buildInputs = [
|
|
curl openssl
|
|
] ++ lib.optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.Security ];
|
|
|
|
cargoSha256 = "sha256:8SOpL8nfhYen9vza0LYpB/5fgVmBwG7vGMmFOaJskIc=";
|
|
|
|
# Tests perform networking and therefore can't work in sandbox
|
|
doCheck = false;
|
|
|
|
meta = with lib; {
|
|
description = "Install, upgrade and uninstall Elm dependencies";
|
|
homepage = "https://github.com/zwilias/elm-json";
|
|
license = licenses.mit;
|
|
maintainers = [ maintainers.turbomack ];
|
|
};
|
|
}
|