at 22.05-pre 41 lines 1.0 kB view raw
1{ lib 2, rustPlatform 3, fetchFromGitHub 4, cmake 5, pkg-config 6, stdenv 7, libiconv 8, Security 9, SystemConfiguration 10, openssl 11}: 12 13rustPlatform.buildRustPackage rec { 14 pname = "gitoxide"; 15 version = "0.10.0"; 16 17 src = fetchFromGitHub { 18 owner = "Byron"; 19 repo = "gitoxide"; 20 rev = "v${version}"; 21 sha256 = "sha256-c29gmmkIOyS+HNq2kv53yq+sdEDmQbSmcvVGcd55/hk="; 22 }; 23 24 cargoSha256 = "sha256-oc7XpiOZj4bfqdwrEHj/CzNtWzYWFkgMJOySJNgxAGQ="; 25 26 nativeBuildInputs = [ cmake pkg-config ]; 27 buildInputs = if stdenv.isDarwin 28 then [ libiconv Security SystemConfiguration ] 29 else [ openssl ]; 30 31 # Needed to get openssl-sys to use pkg-config. 32 OPENSSL_NO_VENDOR = 1; 33 34 meta = with lib; { 35 description = "A command-line application for interacting with git repositories"; 36 homepage = "https://github.com/Byron/gitoxide"; 37 changelog = "https://github.com/Byron/gitoxide/blob/v${version}/CHANGELOG.md"; 38 license = with licenses; [ mit /* or */ asl20 ]; 39 maintainers = with maintainers; [ syberant ]; 40 }; 41}