2022-11-21 17:40:18 +00:00
|
|
|
{ lib, rustPlatform, fetchFromGitHub, stdenv, Security }:
|
2022-10-21 18:38:19 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "srvc";
|
2022-11-21 17:40:18 +00:00
|
|
|
version = "0.8.0";
|
2022-10-21 18:38:19 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "insilica";
|
|
|
|
repo = "rs-srvc";
|
|
|
|
rev = "v${version}";
|
2022-11-21 17:40:18 +00:00
|
|
|
sha256 = "sha256-2eEuKAMxxTwjDInpYcOlFJha5DTe0IrxT5rI6ymN0hc=";
|
2022-10-21 18:38:19 +00:00
|
|
|
};
|
|
|
|
|
2022-11-21 17:40:18 +00:00
|
|
|
cargoSha256 = "sha256-nJM7/w4awbCZQysUOSTO6bfsBXO3agJRdp1RyRZhtUY=";
|
|
|
|
|
|
|
|
# remove timeouts in tests to make them less flaky
|
|
|
|
patches = [ ./tests-no-timeout.patch ];
|
2022-11-04 12:27:35 +00:00
|
|
|
|
|
|
|
buildInputs = lib.optionals stdenv.isDarwin [
|
|
|
|
Security
|
|
|
|
];
|
2022-10-21 18:38:19 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Sysrev version control";
|
|
|
|
homepage = "https://github.com/insilica/rs-srvc";
|
|
|
|
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
|
|
|
};
|
|
|
|
}
|