Merge pull request #295816 from Aleksanaa/switcheroo

switcheroo: 2.0.1 -> 2.1.0

authored by Weijia Wang and committed by GitHub 7826c4ff 22d6f549

+16 -4
+16 -4
pkgs/by-name/sw/switcheroo/package.nix
··· 1 1 { lib 2 2 , blueprint-compiler 3 3 , cargo 4 + , darwin 4 5 , desktop-file-utils 5 6 , fetchFromGitLab 6 7 , glib ··· 17 18 18 19 stdenv.mkDerivation (finalAttrs: { 19 20 pname = "switcheroo"; 20 - version = "2.0.1"; 21 + version = "2.1.0"; 21 22 22 23 src = fetchFromGitLab { 23 24 owner = "adhami3310"; 24 25 repo = "Switcheroo"; 25 26 rev = "v${finalAttrs.version}"; 26 - hash = "sha256-3JlI0Co3yuD6fKaKlmz1Vg0epXABO+7cRvm6/PgbGUE="; 27 + hash = "sha256-hopN2ynksaYoNYjXrh7plmhfmGYyqqK75GOtbsE95ZY="; 27 28 }; 28 29 29 30 cargoDeps = rustPlatform.fetchCargoTarball { 30 31 src = finalAttrs.src; 31 32 name = "switcheroo-${finalAttrs.version}"; 32 - hash = "sha256-wC57VTJGiN2hDL2Z9fFw5H9c3Txqh30AHfR9o2DbcSk="; 33 + hash = "sha256-wN6MsiOgYFgzDzdGei0ptRbG+h+xMJiFfzCcg6Xtryw="; 33 34 }; 34 35 35 36 nativeBuildInputs = [ ··· 48 49 glib 49 50 gtk4 50 51 libadwaita 52 + ] ++ lib.optionals stdenv.isDarwin [ 53 + darwin.apple_sdk.frameworks.Foundation 51 54 ]; 52 55 56 + # Workaround for the gettext-sys issue 57 + # https://github.com/Koka/gettext-rs/issues/114 58 + env.NIX_CFLAGS_COMPILE = lib.optionalString 59 + ( 60 + stdenv.cc.isClang && 61 + lib.versionAtLeast stdenv.cc.version "16" 62 + ) 63 + "-Wno-error=incompatible-function-pointer-types"; 64 + 53 65 meta = with lib; { 54 66 changelog = "https://gitlab.com/adhami3310/Switcheroo/-/releases/v${finalAttrs.version}"; 55 67 description = "An app for converting images between different formats"; ··· 57 69 license = licenses.gpl3Plus; 58 70 mainProgram = "switcheroo"; 59 71 maintainers = with maintainers; [ michaelgrahamevans ]; 60 - platforms = platforms.linux; 72 + platforms = platforms.unix; 61 73 }; 62 74 })