diff --git a/pkgs/by-name/gi/git-branchless/package.nix b/pkgs/by-name/gi/git-branchless/package.nix index 5f0b860f9ff1..eb7dacea305e 100644 --- a/pkgs/by-name/gi/git-branchless/package.nix +++ b/pkgs/by-name/gi/git-branchless/package.nix @@ -8,6 +8,7 @@ rustPlatform, sqlite, stdenv, + versionCheckHook, }: rustPlatform.buildRustPackage (finalAttrs: { @@ -30,7 +31,7 @@ rustPlatform.buildRustPackage (finalAttrs: { # - https://github.com/facebook/sapling/commit/9e27acb84605079bf4e305afb637a4d6801831ac postPatch = '' ( - cd ../git-branchless-*-vendor/esl01-indexedlog-*/ + cd $cargoDepsCopy/*/esl01-indexedlog-*/ patch -p1 < ${./fix-esl01-indexedlog-for-rust-1_89.patch} ) ''; @@ -67,10 +68,17 @@ rustPlatform.buildRustPackage (finalAttrs: { "--skip=test_switch_auto_switch_interactive" ]; + nativeInstallCheckInputs = [ versionCheckHook ]; + versionCheckProgramArg = "--version"; + doInstallCheck = true; + meta = { description = "Suite of tools to help you visualize, navigate, manipulate, and repair your commit history"; homepage = "https://github.com/arxanas/git-branchless"; - license = lib.licenses.gpl2Only; + license = [ + lib.licenses.asl20 + lib.licenses.mit + ]; mainProgram = "git-branchless"; maintainers = with lib.maintainers; [ nh2