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