flywheel-cli: clean up after x86_64-darwin drop
This commit is contained in:
@@ -5,29 +5,13 @@
|
||||
unzip,
|
||||
}:
|
||||
|
||||
let
|
||||
inherit (stdenv.hostPlatform) system;
|
||||
throwSystem = throw "Unsupported system: ${system}";
|
||||
|
||||
os =
|
||||
{
|
||||
x86_64-linux = "linux";
|
||||
}
|
||||
.${system} or throwSystem;
|
||||
|
||||
sha256 =
|
||||
{
|
||||
x86_64-linux = "sha256-SxBjRd95hoh2zwX6IDnkZnTWVduQafPHvnWw8qTuM78=";
|
||||
}
|
||||
.${system} or throwSystem;
|
||||
in
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "flywheel-cli";
|
||||
version = "16.2.0";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://storage.googleapis.com/flywheel-dist/cli/${finalAttrs.version}/fw-${os}_amd64-${finalAttrs.version}.zip";
|
||||
inherit sha256;
|
||||
url = "https://storage.googleapis.com/flywheel-dist/cli/${finalAttrs.version}/fw-linux_amd64-${finalAttrs.version}.zip";
|
||||
hash = "sha256-SxBjRd95hoh2zwX6IDnkZnTWVduQafPHvnWw8qTuM78=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ unzip ];
|
||||
@@ -38,7 +22,7 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
install -Dt $out/bin ./${os}_amd64/fw
|
||||
install -Dt $out/bin ./linux_amd64/fw
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user