diff --git a/pkgs/development/tools/bacon/default.nix b/pkgs/development/tools/bacon/default.nix index ba1d443567d8..1f148ec1d03e 100644 --- a/pkgs/development/tools/bacon/default.nix +++ b/pkgs/development/tools/bacon/default.nix @@ -1,4 +1,9 @@ -{ lib, stdenv, rustPlatform, fetchFromGitHub, CoreServices }: +{ lib +, stdenv +, rustPlatform +, fetchFromGitHub +, CoreServices +}: rustPlatform.buildRustPackage rec { pname = "bacon"; @@ -7,18 +12,21 @@ rustPlatform.buildRustPackage rec { src = fetchFromGitHub { owner = "Canop"; repo = pname; - rev = "v${version}"; - sha256 = "sha256-vmvv08cAYNfzlHXrCwfL37U39TS8VQIOJGMgDHc99ME="; + rev = "refs/tags/v${version}"; + hash = "sha256-vmvv08cAYNfzlHXrCwfL37U39TS8VQIOJGMgDHc99ME="; }; cargoHash = "sha256-2HR0ClsbCjHiZKmPJkv3NnJyDmdR1rw+TD7UuHLk1Sg="; - buildInputs = lib.optional stdenv.isDarwin CoreServices; + buildInputs = lib.optional stdenv.isDarwin [ + CoreServices + ]; meta = with lib; { description = "Background rust code checker"; homepage = "https://github.com/Canop/bacon"; + changelog = "https://github.com/Canop/bacon/blob/v${version}/CHANGELOG.md"; license = licenses.agpl3Only; - maintainers = [ maintainers.FlorianFranzen ]; + maintainers = with maintainers; [ FlorianFranzen ]; }; }