lol
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

cargo-c: switch to fetchCrate

figsoda 10666c66 5da3c99f

+21 -27
+21 -27
pkgs/development/tools/rust/cargo-c/default.nix
··· 1 - { rustPlatform, stdenv, lib, fetchFromGitHub, fetchurl 2 - , pkg-config, curl, openssl 3 - , CoreFoundation, libiconv, Security 1 + { lib 2 + , rustPlatform 3 + , fetchCrate 4 + , pkg-config 5 + , curl 6 + , openssl 7 + , stdenv 8 + , CoreFoundation 9 + , libiconv 10 + , Security 4 11 }: 5 12 6 13 rustPlatform.buildRustPackage rec { 7 14 pname = "cargo-c"; 8 15 version = "0.9.2"; 9 16 10 - src = stdenv.mkDerivation rec { 11 - name = "${pname}-source-${version}"; 12 - 13 - src = fetchFromGitHub { 14 - owner = "lu-zero"; 15 - repo = pname; 16 - rev = "v${version}"; 17 - sha256 = "0hvlrhmbplx4cj4l5fynihgr9cdh0rkpwvipizk1gpp6p1ksr5hz"; 18 - }; 19 - cargoLock = fetchurl { 20 - url = "https://github.com/lu-zero/${pname}/releases/download/v${version}/Cargo.lock"; 21 - sha256 = "0ckn31asz7013206j153ig96602dxvxm6skdz1plan0h05j5mgah"; 22 - }; 23 - 24 - installPhase = '' 25 - mkdir -p $out 26 - cp -R ./* $out/ 27 - cp ${cargoLock} $out/Cargo.lock 28 - ''; 17 + src = fetchCrate { 18 + inherit pname; 19 + # this version may need to be updated along with package version 20 + version = "${version}+cargo-0.55"; 21 + sha256 = "sha256-yh5vAtKlBvoSlJBsW2RSduSK6T8aOssM84WQMNjLZqA="; 29 22 }; 30 23 31 - cargoSha256 = "0c0vn2pcy5px02mc0l4a3w7z9n8hc6br5w3ww6nrav5w6911jp52"; 32 - 24 + cargoSha256 = "sha256-YikTjAeroaHyNe3ygUWRHSXJwdm2BSBV7RgIDN4suZ4="; 33 25 34 26 nativeBuildInputs = [ pkg-config (lib.getDev curl) ]; 35 - buildInputs = [ openssl curl ] 36 - ++ lib.optionals stdenv.isDarwin [ CoreFoundation libiconv Security ]; 27 + buildInputs = [ openssl curl ] ++ lib.optionals stdenv.isDarwin [ 28 + CoreFoundation 29 + libiconv 30 + Security 31 + ]; 37 32 38 33 # Ensure that we are avoiding build of the curl vendored in curl-sys 39 34 doInstallCheck = stdenv.hostPlatform.libc == "glibc"; ··· 55 50 homepage = "https://github.com/lu-zero/cargo-c"; 56 51 changelog = "https://github.com/lu-zero/cargo-c/releases/tag/v${version}"; 57 52 license = licenses.mit; 58 - platforms = platforms.unix; 59 53 maintainers = with maintainers; [ ]; 60 54 }; 61 55 }