nixpkgs/pkgs/applications/version-management/srvc/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

35 lines
956 B
Nix
Raw Normal View History

2023-03-18 09:50:43 +00:00
{ lib, rustPlatform, fetchFromGitHub, stdenv, darwin, git }:
2022-10-12 17:21:08 +00:00
rustPlatform.buildRustPackage rec {
pname = "srvc";
2023-06-25 19:16:46 +00:00
version = "0.20.0";
2022-10-12 17:21:08 +00:00
src = fetchFromGitHub {
owner = "insilica";
repo = "rs-srvc";
rev = "v${version}";
2023-06-25 19:16:46 +00:00
hash = "sha256-pnlbMU/uoP9ZK8kzTRYTMY9+X9VIKJHwW2qMXXD8Udg=";
2022-10-12 17:21:08 +00:00
};
2023-06-25 19:16:46 +00:00
cargoHash = "sha256-+m8WJMn1aq3FBDO5c/ZwbcK2G+UE5pSwHTgOl2s6pDw=";
2022-11-04 03:39:09 +00:00
buildInputs = lib.optionals stdenv.isDarwin [
2023-03-18 09:50:43 +00:00
darwin.apple_sdk.frameworks.CoreServices
darwin.apple_sdk.frameworks.Security
2022-11-04 03:39:09 +00:00
];
2023-01-25 00:41:42 +00:00
nativeCheckInputs = [ git ];
2022-12-13 00:32:17 +00:00
# remove timeouts in tests to make them less flaky
TEST_SRVC_DISABLE_TIMEOUT = 1;
2022-10-12 17:21:08 +00:00
meta = with lib; {
description = "Sysrev version control";
homepage = "https://github.com/insilica/rs-srvc";
2022-12-13 00:32:17 +00:00
changelog = "https://github.com/insilica/rs-srvc/blob/v${version}/CHANGELOG.md";
2022-10-12 17:21:08 +00:00
license = licenses.asl20;
maintainers = with maintainers; [ john-shaffer ];
mainProgram = "sr";
2022-10-12 17:21:08 +00:00
};
}