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