14 stdenv.mkDerivation (finalAttrs: {
15 pname = "git-cinnabar";
18 src = fetchFromGitHub {
20 repo = "git-cinnabar";
21 rev = finalAttrs.version;
22 hash = "sha256-RUrklp2hobHKnBZKVvxMGquNSZBG/rVWaD/m+7AWqHo=";
23 fetchSubmodules = true;
29 rustPlatform.cargoSetupHook
39 cargoDeps = rustPlatform.fetchCargoTarball {
40 inherit (finalAttrs) src;
41 hash = "sha256-fTwHwZsBvp2F4w5reF94imaXnsw7xfgJQlGRZ3ztnK8=";
44 ZSTD_SYS_USE_PKG_CONFIG = true;
46 enableParallelBuilding = true;
48 # Disable automated version-check
49 buildNoDefaultFeatures = true;
50 checkNoDefaultFeatures = true;
56 install -v target/release/git-cinnabar $out/bin
57 ln -sv git-cinnabar $out/bin/git-remote-hg
63 description = "git remote helper to interact with mercurial repositories";
64 homepage = "https://github.com/glandium/git-cinnabar";
65 license = lib.licenses.gpl2Only;
66 maintainers = with lib.maintainers; [ qyliss ];
67 platforms = lib.platforms.all;