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 { lib 2 , blueprint-compiler 3 , cargo 4 , desktop-file-utils 5 , fetchFromGitLab 6 , glib ··· 17 18 stdenv.mkDerivation (finalAttrs: { 19 pname = "switcheroo"; 20 - version = "2.0.1"; 21 22 src = fetchFromGitLab { 23 owner = "adhami3310"; 24 repo = "Switcheroo"; 25 rev = "v${finalAttrs.version}"; 26 - hash = "sha256-3JlI0Co3yuD6fKaKlmz1Vg0epXABO+7cRvm6/PgbGUE="; 27 }; 28 29 cargoDeps = rustPlatform.fetchCargoTarball { 30 src = finalAttrs.src; 31 name = "switcheroo-${finalAttrs.version}"; 32 - hash = "sha256-wC57VTJGiN2hDL2Z9fFw5H9c3Txqh30AHfR9o2DbcSk="; 33 }; 34 35 nativeBuildInputs = [ ··· 48 glib 49 gtk4 50 libadwaita 51 ]; 52 53 meta = with lib; { 54 changelog = "https://gitlab.com/adhami3310/Switcheroo/-/releases/v${finalAttrs.version}"; 55 description = "An app for converting images between different formats"; ··· 57 license = licenses.gpl3Plus; 58 mainProgram = "switcheroo"; 59 maintainers = with maintainers; [ michaelgrahamevans ]; 60 - platforms = platforms.linux; 61 }; 62 })
··· 1 { lib 2 , blueprint-compiler 3 , cargo 4 + , darwin 5 , desktop-file-utils 6 , fetchFromGitLab 7 , glib ··· 18 19 stdenv.mkDerivation (finalAttrs: { 20 pname = "switcheroo"; 21 + version = "2.1.0"; 22 23 src = fetchFromGitLab { 24 owner = "adhami3310"; 25 repo = "Switcheroo"; 26 rev = "v${finalAttrs.version}"; 27 + hash = "sha256-hopN2ynksaYoNYjXrh7plmhfmGYyqqK75GOtbsE95ZY="; 28 }; 29 30 cargoDeps = rustPlatform.fetchCargoTarball { 31 src = finalAttrs.src; 32 name = "switcheroo-${finalAttrs.version}"; 33 + hash = "sha256-wN6MsiOgYFgzDzdGei0ptRbG+h+xMJiFfzCcg6Xtryw="; 34 }; 35 36 nativeBuildInputs = [ ··· 49 glib 50 gtk4 51 libadwaita 52 + ] ++ lib.optionals stdenv.isDarwin [ 53 + darwin.apple_sdk.frameworks.Foundation 54 ]; 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 + 65 meta = with lib; { 66 changelog = "https://gitlab.com/adhami3310/Switcheroo/-/releases/v${finalAttrs.version}"; 67 description = "An app for converting images between different formats"; ··· 69 license = licenses.gpl3Plus; 70 mainProgram = "switcheroo"; 71 maintainers = with maintainers; [ michaelgrahamevans ]; 72 + platforms = platforms.unix; 73 }; 74 })