15 stdenv.mkDerivation (finalAttrs: {
16 pname = "git-cinnabar";
19 src = fetchFromGitHub {
21 repo = "git-cinnabar";
22 rev = finalAttrs.version;
23 hash = "sha256-1Y4zd4rYNRatemDXRMkQQwBJdkfOGfDWk9QBvJOgi7s=";
24 fetchSubmodules = true;
30 rustPlatform.cargoSetupHook
38 ] ++ lib.optionals stdenv.isDarwin [
43 cargoDeps = rustPlatform.fetchCargoTarball {
44 inherit (finalAttrs) src;
45 hash = "sha256-p85AS2DukUzEbW9UGYmiF3hpnZvPrZ2sRaeA9dU8j/8=";
48 ZSTD_SYS_USE_PKG_CONFIG = true;
50 enableParallelBuilding = 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;