flutter: revert unnecessary extension extraction

Signed-off-by: Sunghoon Kang <me@hoon.dev>
This commit is contained in:
Sunghoon Kang 2023-07-07 16:59:52 +09:00
parent 77618bd28b
commit 37a10c3cb7
No known key found for this signature in database
GPG key ID: 35D0CE4964B093C0

View file

@ -135,8 +135,7 @@ let
mkArtifactDerivation = { platform ? null, variant ? null, subdirectory ? null, archive, ... }@args:
let
artifactDirectory = if platform == null then null else "${platform}${lib.optionalString (variant != null) "-${variant}"}";
archiveExtension = ".${(lib.last (lib.splitString "." archive))}";
archiveBasename = lib.removeSuffix archiveExtension archive;
archiveBasename = lib.removeSuffix ".${(lib.last (lib.splitString "." archive))}" archive;
overrideUnpackCmd = builtins.elem archive [ "FlutterEmbedder.framework.zip" "FlutterMacOS.framework.zip" ];
in
stdenv.mkDerivation ({