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