2023-04-29 16:46:19 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, rustPlatform
|
2023-07-15 17:15:38 +00:00
|
|
|
, git
|
2023-04-29 16:46:19 +00:00
|
|
|
, openssl
|
|
|
|
, pkg-config
|
|
|
|
, stdenv
|
|
|
|
, SystemConfiguration
|
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "rye";
|
2023-07-15 17:15:38 +00:00
|
|
|
version = "0.6.0";
|
2023-04-29 16:46:19 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mitsuhiko";
|
2023-07-15 17:15:38 +00:00
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
|
|
|
# One of the tests runs git command so we need .git directory there
|
|
|
|
leaveDotGit = true;
|
|
|
|
sha256 = "llm4aqMfaVf3VbHudWjb9V2GFgJpP9S211Ui7xXdrAU=";
|
2023-04-29 16:46:19 +00:00
|
|
|
};
|
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
cargoLock = {
|
|
|
|
lockFile = ./Cargo.lock;
|
|
|
|
outputHashes = {
|
|
|
|
"dialoguer-0.10.4" = "sha256-WDqUKOu7Y0HElpPxf2T8EpzAY3mY8sSn9lf0V0jyAFc=";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
env = {
|
|
|
|
OPENSSL_NO_VENDOR = 1;
|
|
|
|
};
|
2023-04-29 16:46:19 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
|
|
|
|
buildInputs = [
|
2023-07-15 17:15:38 +00:00
|
|
|
git
|
2023-04-29 16:46:19 +00:00
|
|
|
openssl
|
|
|
|
]
|
|
|
|
++ lib.optional stdenv.isDarwin SystemConfiguration;
|
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
nativeCheckInputs = [ git ];
|
|
|
|
|
2023-04-29 16:46:19 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "A tool to easily manage python dependencies and environments";
|
|
|
|
homepage = "https://github.com/mitsuhiko/rye";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ GaetanLepage ];
|
|
|
|
};
|
|
|
|
}
|