From 6156a117b11896329f90e5707e821f5efdf6b37f Mon Sep 17 00:00:00 2001 From: Someone Serge Date: Tue, 28 May 2024 13:31:50 +0000 Subject: [PATCH] imgui: stop using 'with lib;' --- pkgs/by-name/im/imnodes/package.nix | 8 ++++---- pkgs/by-name/im/implot/demos/default.nix | 8 ++++---- pkgs/by-name/im/implot/package.nix | 8 ++++---- pkgs/development/libraries/imgui/default.nix | 8 ++++---- 4 files changed, 16 insertions(+), 16 deletions(-) diff --git a/pkgs/by-name/im/imnodes/package.nix b/pkgs/by-name/im/imnodes/package.nix index bdaafa5fe335..403cee14544d 100644 --- a/pkgs/by-name/im/imnodes/package.nix +++ b/pkgs/by-name/im/imnodes/package.nix @@ -45,12 +45,12 @@ stdenv.mkDerivation rec { passthru.tests.examples = imnodes.override { withExamples = true; }; - meta = with lib; { + meta = { description = "A small, dependency-free node editor for dear imgui"; homepage = "https://github.com/Nelarius/imnodes"; - license = licenses.mit; - maintainers = with maintainers; [ SomeoneSerge ]; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ SomeoneSerge ]; mainProgram = "imnodes"; - platforms = platforms.all; + platforms = lib.platforms.all; }; } diff --git a/pkgs/by-name/im/implot/demos/default.nix b/pkgs/by-name/im/implot/demos/default.nix index 84a7ed398b64..b3a369668c1d 100644 --- a/pkgs/by-name/im/implot/demos/default.nix +++ b/pkgs/by-name/im/implot/demos/default.nix @@ -67,15 +67,15 @@ stdenv.mkDerivation rec { ++ lib.optionals stdenv.hostPlatform.isLinux [ gtk3 ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ darwin.apple_sdk.frameworks.AppKit ]; - meta = with lib; { + meta = { description = "Standalone ImPlot Demos"; homepage = "https://github.com/epezent/implot_demos"; broken = stdenv.hostPlatform.isAarch64 # Target "mandel" relies on AVX2 || stdenv.isDarwin; - license = licenses.mit; - maintainers = with maintainers; [ SomeoneSerge ]; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ SomeoneSerge ]; mainProgram = "implot-demos"; - platforms = platforms.all; + platforms = lib.platforms.all; }; } diff --git a/pkgs/by-name/im/implot/package.nix b/pkgs/by-name/im/implot/package.nix index 2ed39df8f41c..541e85c73f58 100644 --- a/pkgs/by-name/im/implot/package.nix +++ b/pkgs/by-name/im/implot/package.nix @@ -31,11 +31,11 @@ stdenv.mkDerivation rec { implot-demos = callPackage ./demos { }; }; - meta = with lib; { + meta = { description = "Immediate Mode Plotting"; homepage = "https://github.com/epezent/implot"; - license = licenses.mit; - maintainers = with maintainers; [ SomeoneSerge ]; - platforms = platforms.all; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ SomeoneSerge ]; + platforms = lib.platforms.all; }; } diff --git a/pkgs/development/libraries/imgui/default.nix b/pkgs/development/libraries/imgui/default.nix index 20008046bbc5..9b1b863cc289 100644 --- a/pkgs/development/libraries/imgui/default.nix +++ b/pkgs/development/libraries/imgui/default.nix @@ -120,7 +120,7 @@ stdenv.mkDerivation rec { }; }; - meta = with lib; { + meta = { # These flags haven't been tested: broken = IMGUI_FREETYPE @@ -134,8 +134,8 @@ stdenv.mkDerivation rec { || IMGUI_BUILD_ANDROID_BINDING; description = "Bloat-free Graphical User interface for C++ with minimal dependencies"; homepage = "https://github.com/ocornut/imgui"; - license = licenses.mit; # vcpkg licensed as MIT too - maintainers = with maintainers; [ wolfangaukang ]; - platforms = platforms.all; + license = lib.licenses.mit; # vcpkg licensed as MIT too + maintainers = with lib.maintainers; [ wolfangaukang ]; + platforms = lib.platforms.all; }; }