4d5a95770c
GitOrigin-RevId: 3c5319ad3aa51551182ac82ea17ab1c6b0f0df89
33 lines
887 B
Nix
33 lines
887 B
Nix
{ lib, rustPlatform, fetchFromGitHub, stdenv, Security, git }:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "srvc";
|
|
version = "0.14.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "insilica";
|
|
repo = "rs-srvc";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-6wA2dnUUgS6HNQo2vMFqoT+seZHqcNLoTN+f5+Ok1AQ=";
|
|
};
|
|
|
|
cargoHash = "sha256-XkRnbfTaCo0J1+yOOvIxhDTjtaZURkjFOPWsFRk8iNU=";
|
|
|
|
buildInputs = lib.optionals stdenv.isDarwin [
|
|
Security
|
|
];
|
|
|
|
nativeCheckInputs = [ git ];
|
|
|
|
# remove timeouts in tests to make them less flaky
|
|
TEST_SRVC_DISABLE_TIMEOUT = 1;
|
|
|
|
meta = with lib; {
|
|
description = "Sysrev version control";
|
|
homepage = "https://github.com/insilica/rs-srvc";
|
|
changelog = "https://github.com/insilica/rs-srvc/blob/v${version}/CHANGELOG.md";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ john-shaffer ];
|
|
mainProgram = "sr";
|
|
};
|
|
}
|