2023-03-24 00:07:29 +00:00
|
|
|
{ lib, rustPlatform, fetchFromGitHub, stdenv, darwin, git }:
|
2022-10-21 18:38:19 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "srvc";
|
2023-05-24 13:37:59 +00:00
|
|
|
version = "0.18.0";
|
2022-10-21 18:38:19 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "insilica";
|
|
|
|
repo = "rs-srvc";
|
|
|
|
rev = "v${version}";
|
2023-05-24 13:37:59 +00:00
|
|
|
hash = "sha256-/NLqQcuJML0Yxu08dGma6WjTmuEsf5GbsgjX90f2K5U=";
|
2022-10-21 18:38:19 +00:00
|
|
|
};
|
|
|
|
|
2023-05-24 13:37:59 +00:00
|
|
|
cargoHash = "sha256-OlzMKiibWLmba2MhcUWzvgBDMyTqTBqaXYI2a0Uw7Jw=";
|
2022-11-04 12:27:35 +00:00
|
|
|
|
|
|
|
buildInputs = lib.optionals stdenv.isDarwin [
|
2023-03-24 00:07:29 +00:00
|
|
|
darwin.apple_sdk.frameworks.CoreServices
|
|
|
|
darwin.apple_sdk.frameworks.Security
|
2022-11-04 12:27:35 +00:00
|
|
|
];
|
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
|
|
|
};
|
|
|
|
}
|