at 22.05-pre 26 lines 692 B view raw
1{ lib, rustPlatform, fetchFromGitHub, stdenv, libiconv }: 2 3rustPlatform.buildRustPackage rec { 4 pname = "cargo-feature"; 5 version = "0.5.5"; 6 7 src = fetchFromGitHub { 8 owner = "Riey"; 9 repo = pname; 10 rev = "v${version}"; 11 sha256 = "sha256-0Ski+LytE636HHduisYJJq3khRsaJJ4YhpmaU5On348="; 12 }; 13 14 cargoSha256 = "sha256-PA/s/BrqUftdGc5Lvd0glL9Dr8GLX9pYMq6WRRUQwEk="; 15 16 buildInputs = lib.optional stdenv.isDarwin libiconv; 17 18 meta = with lib; { 19 description = "Allows conveniently modify features of crate"; 20 homepage = "https://github.com/Riey/cargo-feature"; 21 license = licenses.mit; 22 platforms = platforms.unix; 23 maintainers = with maintainers; [ riey ]; 24 }; 25} 26