410b979fe2
GitOrigin-RevId: a64e169e396460d6b5763a1de1dd197df8421688
34 lines
956 B
Nix
34 lines
956 B
Nix
{ lib, rustPlatform, fetchFromGitHub, stdenv, darwin, git }:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "srvc";
|
|
version = "0.15.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "insilica";
|
|
repo = "rs-srvc";
|
|
rev = "v${version}";
|
|
hash = "sha256-vShPc+Tz8n2o8E13npr7ZbDzRaAesWBOJQaCO5ljypM=";
|
|
};
|
|
|
|
cargoHash = "sha256-fHHJR1OvqCYfJkXe9mVQXJeTETDadR65kf8LMsPdAds=";
|
|
|
|
buildInputs = lib.optionals stdenv.isDarwin [
|
|
darwin.apple_sdk.frameworks.CoreServices
|
|
darwin.apple_sdk.frameworks.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";
|
|
};
|
|
}
|