2023-02-02 18:25:31 +00:00
|
|
|
{ lib, rustPlatform, fetchFromGitHub, stdenv, Security, git }:
|
2022-10-21 18:38:19 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "srvc";
|
2023-02-16 17:41:37 +00:00
|
|
|
version = "0.14.0";
|
2022-10-21 18:38:19 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "insilica";
|
|
|
|
repo = "rs-srvc";
|
|
|
|
rev = "v${version}";
|
2023-02-16 17:41:37 +00:00
|
|
|
sha256 = "sha256-gid3zPN9fdUqqNnRKvhEfzO4rJqZ3lWwmlP6SWEUyAY=";
|
2022-10-21 18:38:19 +00:00
|
|
|
};
|
|
|
|
|
2023-02-16 17:41:37 +00:00
|
|
|
cargoHash = "sha256-UWKD2qXyxGepFK90QkyhyR7PJrK1wUiwQZjApoz9tqU=";
|
2022-11-04 12:27:35 +00:00
|
|
|
|
|
|
|
buildInputs = lib.optionals stdenv.isDarwin [
|
|
|
|
Security
|
|
|
|
];
|
2022-10-21 18:38:19 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [ git ];
|
2022-12-17 10:02:37 +00:00
|
|
|
|
|
|
|
# remove timeouts in tests to make them less flaky
|
|
|
|
TEST_SRVC_DISABLE_TIMEOUT = 1;
|
|
|
|
|
2022-10-21 18:38:19 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Sysrev version control";
|
|
|
|
homepage = "https://github.com/insilica/rs-srvc";
|
2022-12-17 10:02:37 +00:00
|
|
|
changelog = "https://github.com/insilica/rs-srvc/blob/v${version}/CHANGELOG.md";
|
2022-10-21 18:38:19 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ john-shaffer ];
|
2022-11-21 17:40:18 +00:00
|
|
|
mainProgram = "sr";
|
2022-10-21 18:38:19 +00:00
|
|
|
};
|
|
|
|
}
|