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

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

62 lines
1.2 KiB
Nix
Raw Normal View History

2022-03-14 20:34:02 +01:00
{ lib
, rustPlatform
, fetchFromGitHub
, pkg-config
, openssl
, stdenv
, dbus
, sqlite
, Security
, SystemConfiguration
, libiconv
, testers
2022-03-14 20:34:02 +01:00
, jujutsu
}:
rustPlatform.buildRustPackage rec {
pname = "jujutsu";
2023-02-22 09:10:01 +01:00
version = "0.7.0";
2022-03-14 20:34:02 +01:00
src = fetchFromGitHub {
owner = "martinvonz";
repo = "jj";
rev = "v${version}";
2023-02-22 09:10:01 +01:00
sha256 = "sha256-FczlSBlLhLIamLiY4cGVAoHx0/sxx+tykICzedFbbx8=";
2022-03-14 20:34:02 +01:00
};
2023-02-22 09:10:01 +01:00
cargoHash = "sha256-PydDgXp47KUSLvAQgfO+09lrzTnBjzGd+zA5f/jZfRc=";
2022-03-14 20:34:02 +01:00
# Needed to get openssl-sys to use pkg-config.
OPENSSL_NO_VENDOR = 1;
nativeBuildInputs = [
pkg-config
];
buildInputs = [
openssl
dbus
sqlite
] ++ lib.optionals stdenv.isDarwin [
Security
SystemConfiguration
libiconv
];
passthru.tests = {
version = testers.testVersion {
2022-03-14 20:34:02 +01:00
package = jujutsu;
command = "jj --version";
};
};
meta = with lib; {
description = "A Git-compatible DVCS that is both simple and powerful";
homepage = "https://github.com/martinvonz/jj";
changelog = "https://github.com/martinvonz/jj/blob/v${version}/CHANGELOG.md";
license = licenses.asl20;
maintainers = with maintainers; [ _0x4A6F ];
mainProgram = "jj";
2022-03-14 20:34:02 +01:00
};
}