
See https://github.com/glandium/git-cinnabar/releases/tag/0.7.3 for upstream release notes
69 lines
1.3 KiB
Nix
69 lines
1.3 KiB
Nix
{
|
|
stdenv,
|
|
lib,
|
|
fetchFromGitHub,
|
|
cargo,
|
|
pkg-config,
|
|
rustPlatform,
|
|
bzip2,
|
|
curl,
|
|
zlib,
|
|
zstd,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "git-cinnabar";
|
|
version = "0.7.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "glandium";
|
|
repo = "git-cinnabar";
|
|
tag = finalAttrs.version;
|
|
hash = "sha256-qE9LvOX2n+ylQry79CsmRCUzUEgwYZne3tbNDCoynzk=";
|
|
fetchSubmodules = true;
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
cargo
|
|
pkg-config
|
|
rustPlatform.cargoSetupHook
|
|
];
|
|
|
|
buildInputs = [
|
|
bzip2
|
|
curl
|
|
zlib
|
|
zstd
|
|
];
|
|
|
|
cargoDeps = rustPlatform.fetchCargoVendor {
|
|
inherit (finalAttrs) src;
|
|
hash = "sha256-IVizzc2dKZ83dz3KBMDDiaFNdnS40cS++k8AywyvakQ=";
|
|
};
|
|
|
|
ZSTD_SYS_USE_PKG_CONFIG = true;
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
# Disable automated version-check
|
|
buildNoDefaultFeatures = true;
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
mkdir -p $out/bin
|
|
install -v target/release/git-cinnabar $out/bin
|
|
ln -sv git-cinnabar $out/bin/git-remote-hg
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = {
|
|
description = "Git remote helper to interact with mercurial repositories";
|
|
homepage = "https://github.com/glandium/git-cinnabar";
|
|
license = lib.licenses.gpl2Only;
|
|
maintainers = with lib.maintainers; [ qyliss ];
|
|
platforms = lib.platforms.all;
|
|
};
|
|
})
|