aapt: switch to finalAttrs pattern (#527619)
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
libcxx,
|
||||
}:
|
||||
|
||||
stdenvNoCC.mkDerivation rec {
|
||||
stdenvNoCC.mkDerivation (finalAttrs: {
|
||||
pname = "aapt";
|
||||
version = "8.13.2-14304508";
|
||||
|
||||
@@ -15,12 +15,12 @@ stdenvNoCC.mkDerivation rec {
|
||||
urlAndHash =
|
||||
if stdenvNoCC.hostPlatform.isLinux then
|
||||
{
|
||||
url = "https://dl.google.com/android/maven2/com/android/tools/build/aapt2/${version}/aapt2-${version}-linux.jar";
|
||||
url = "https://dl.google.com/android/maven2/com/android/tools/build/aapt2/${finalAttrs.version}/aapt2-${finalAttrs.version}-linux.jar";
|
||||
hash = "sha256-eiNY58ueDpcyKvAteRuKFVr3r22kOhwSADkaH3CRwKw=";
|
||||
}
|
||||
else if stdenvNoCC.hostPlatform.isDarwin then
|
||||
{
|
||||
url = "https://dl.google.com/android/maven2/com/android/tools/build/aapt2/${version}/aapt2-${version}-osx.jar";
|
||||
url = "https://dl.google.com/android/maven2/com/android/tools/build/aapt2/${finalAttrs.version}/aapt2-${finalAttrs.version}-osx.jar";
|
||||
hash = "sha256-RI/S2oXMSvipALRfeRTsiXUh130/b8iP+EO0yltd7x0=";
|
||||
}
|
||||
else
|
||||
@@ -55,4 +55,4 @@ stdenvNoCC.mkDerivation rec {
|
||||
platforms = lib.platforms.darwin ++ [ "x86_64-linux" ];
|
||||
sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
|
||||
};
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user