nixpkgs/pkgs/development/compilers/elm/packages/elm-json.nix

22 lines
662 B
Nix
Raw Normal View History

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