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-04-12 12:48:02 +00:00
|
|
|
version = "0.17.0";
|
2022-10-21 18:38:19 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "insilica";
|
|
|
|
repo = "rs-srvc";
|
|
|
|
rev = "v${version}";
|
2023-04-12 12:48:02 +00:00
|
|
|
hash = "sha256-6cullXcSnFlGM5O/g/J5WwBBUPfg1cbvjyPcIZ6yjRE=";
|
2022-10-21 18:38:19 +00:00
|
|
|
};
|
|
|
|
|
2023-04-12 12:48:02 +00:00
|
|
|
cargoHash = "sha256-xmHCm4kH4y0ph0ssMXZn+TvLAciYrsggyjmar85zF74=";
|
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
|
|
|
};
|
|
|
|
}
|