Skip to content

Commit

Permalink
prometheus-cpp: use finalAttrs pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
tobim committed Dec 8, 2024
1 parent 36e312c commit 3dd3225
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions pkgs/by-name/pr/prometheus-cpp/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@
zlib,
}:

stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
pname = "prometheus-cpp";
version = "1.1.0";

src = fetchFromGitHub {
owner = "jupp0r";
repo = pname;
rev = "v${version}";
repo = "prometheus-cpp";
rev = "v${finalAttrs.version}";
sha256 = "sha256-qx6oBxd0YrUyFq+7ArnKBqOwrl5X8RS9nErhRDUJ7+8=";
};

Expand Down Expand Up @@ -51,5 +51,4 @@ stdenv.mkDerivation rec {
homepage = "https://github.com/jupp0r/prometheus-cpp";
license = [ lib.licenses.mit ];
};

}
})

0 comments on commit 3dd3225

Please sign in to comment.