opensearch: use finalAttrs pattern

This commit is contained in:
Pol Dellaiera 2023-08-15 19:08:03 +02:00
parent fac26076f8
commit f059023563
No known key found for this signature in database
GPG key ID: D476DFE9C67467CA

View file

@ -11,12 +11,12 @@
, nixosTests
}:
stdenvNoCC.mkDerivation rec {
stdenvNoCC.mkDerivation (finalAttrs: {
pname = "opensearch";
version = "2.9.0";
src = fetchurl {
url = "https://artifacts.opensearch.org/releases/bundle/opensearch/${version}/opensearch-${version}-linux-x64.tar.gz";
url = "https://artifacts.opensearch.org/releases/bundle/opensearch/${finalAttrs.version}/opensearch-${finalAttrs.version}-linux-x64.tar.gz";
hash = "sha256-A9YjwtmacQDC8PrdyP/ai6J+roqmP/bz99rSM3votow=";
};
@ -56,4 +56,4 @@ stdenvNoCC.mkDerivation rec {
platforms = lib.platforms.unix;
maintainers = with lib.maintainers; [ shyim ];
};
}
})