2021-05-20 23:08:51 +00:00
|
|
|
{ lib, curl, rustPlatform, fetchurl, openssl, stdenv, pkg-config, Security }:
|
2020-08-20 17:08:02 +00:00
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "elm-json";
|
2021-05-20 23:08:51 +00:00
|
|
|
version = "0.2.10";
|
2020-08-20 17:08:02 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/zwilias/elm-json/archive/v${version}.tar.gz";
|
2021-05-20 23:08:51 +00:00
|
|
|
sha256 = "sha256:03azh7wvl60h6w7ffpvl49s7jr7bxpladcm4fzcasakg26i5a71x";
|
2020-08-20 17:08:02 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
cargoPatches = [ ./elm-json.patch ];
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
|
2021-05-20 23:08:51 +00:00
|
|
|
buildInputs = [ curl openssl ] ++ lib.optionals stdenv.isDarwin [ Security ];
|
2020-08-20 17:08:02 +00:00
|
|
|
|
2021-05-20 23:08:51 +00:00
|
|
|
cargoSha256 = "sha256:01zasrqf1va58i52s3kwdkj1rnwy80gv00xi6npfshjirj3ix07f";
|
2020-08-20 17:08:02 +00:00
|
|
|
|
|
|
|
# Tests perform networking and therefore can't work in sandbox
|
|
|
|
doCheck = false;
|
|
|
|
}
|