git-vanity-hash: fix build and use new dependency

Build has been broken in Hydra. Potential cause seems to be an old
dependency, with a possible workaround sent upstream. Patch the
workaround for now.

+10 -5
+10 -5
pkgs/applications/version-management/git-vanity-hash/default.nix
··· 1 - { lib, fetchFromGitHub, rustPlatform }: 2 3 - rustPlatform.buildRustPackage rec { 4 pname = "git-vanity-hash"; 5 version = "1.0.0"; 6 7 src = fetchFromGitHub { 8 owner = "prasmussen"; 9 repo = "git-vanity-hash"; 10 - rev = "v${version}"; 11 - hash = "sha256-jD8cSFXf9UNBZ9d8JTnuwhs6nPHY/xGd5RyqF+mQOlo="; 12 }; 13 14 - cargoHash = "sha256-8oW6gRtdQdmSmdwKlcU2EhHsyhk9hFhKl7RtsYwC7Ps="; 15 16 postInstall = '' 17 mkdir -p $out/share/doc/git-vanity-hash
··· 1 + { 2 + lib, 3 + fetchFromGitHub, 4 + rustPlatform, 5 + }: 6 7 + rustPlatform.buildRustPackage { 8 pname = "git-vanity-hash"; 9 version = "1.0.0"; 10 11 src = fetchFromGitHub { 12 owner = "prasmussen"; 13 repo = "git-vanity-hash"; 14 + # v1.0.0 + build fix 15 + rev = "a80e7725ac6d0b7e6807cd7315cfdc7eaf0584f6"; 16 + hash = "sha256-1z4jbtzUB3SH79dDXAITf7Vup1YZdTLHBieSrhrvSXc="; 17 }; 18 19 + cargoHash = "sha256-+SQ0HpURBjnnwH1Ue7IUReOtI4LxVPK9AGSAihs0qsc="; 20 21 postInstall = '' 22 mkdir -p $out/share/doc/git-vanity-hash