mmtf-cpp: adopt finalAttrs pattern

This commit is contained in:
natsukium 2024-04-20 15:34:51 +09:00
parent 18a4e0830c
commit 8902f1bfd0
No known key found for this signature in database
GPG key ID: 9EA45A31DB994C53

View file

@ -1,13 +1,13 @@
{ stdenv, lib, fetchFromGitHub, cmake, msgpack } :
stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
pname = "mmtf-cpp";
version = "1.1.0";
src = fetchFromGitHub {
owner = "rcsb";
repo = pname;
rev = "v${version}";
repo = "mmtf-cpp";
rev = "v${finalAttrs.version}";
hash = "sha256-8JrNobvekMggS8L/VORKA32DNUdXiDrYMObjd29wQmc=";
};
@ -22,4 +22,4 @@ stdenv.mkDerivation rec {
platforms = platforms.unix;
maintainers = [ maintainers.sheepforce ];
};
}
})