Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ stdenv 2, lib 3, rustPlatform 4, fetchFromGitHub 5, cmake 6, libiconv 7, openssl 8, pkg-config 9, Security 10}: 11 12rustPlatform.buildRustPackage rec { 13 pname = "convco"; 14 version = "0.4.0"; 15 16 src = fetchFromGitHub { 17 owner = "convco"; 18 repo = pname; 19 rev = "v${version}"; 20 sha256 = "sha256-Fv1yaBnfn/wik1Ix24shwfritwxno3NoeJgHPsHgZOI="; 21 }; 22 23 cargoHash = "sha256-q0VrN+5Ypq4ga/gI5MlyRaMdD8NxzuaZ804KaRQzpRs="; 24 25 nativeBuildInputs = [ cmake pkg-config ]; 26 27 buildInputs = [ openssl ] ++ lib.optionals stdenv.isDarwin [ libiconv Security ]; 28 29 meta = with lib; { 30 description = "A Conventional commit cli"; 31 homepage = "https://github.com/convco/convco"; 32 license = with licenses; [ mit ]; 33 maintainers = with maintainers; [ hoverbear ]; 34 }; 35}