Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, fetchFromGitHub 3, rustPlatform 4, openssl 5, pkg-config 6, stdenv 7, SystemConfiguration 8}: 9 10rustPlatform.buildRustPackage rec { 11 pname = "rye"; 12 version = "unstable-2023-04-23"; 13 14 src = fetchFromGitHub { 15 owner = "mitsuhiko"; 16 repo = "rye"; 17 rev = "b3fe43a4e462d10784258cad03c19c9738367346"; 18 hash = "sha256-q9/VUWyrP/NsuLYY1+/5teYvDJGq646WbMXptnUUUyw="; 19 }; 20 21 cargoHash = "sha256-eyJ6gXFVnSC1aEt5YLl5rFoa3+M73smu5wJdAN15HQM="; 22 23 nativeBuildInputs = [ pkg-config ]; 24 25 buildInputs = [ 26 openssl 27 ] 28 ++ lib.optional stdenv.isDarwin SystemConfiguration; 29 30 meta = with lib; { 31 description = "A tool to easily manage python dependencies and environments"; 32 homepage = "https://github.com/mitsuhiko/rye"; 33 license = licenses.mit; 34 maintainers = with maintainers; [ GaetanLepage ]; 35 }; 36}