neovide 0.11.2 -> 0.12.0 https://repology.org/project/neovide/versions attrpath: neovide Checking auto update branch... No auto update branch exists Old version 0.11.2" not present in master derivation file with contents: { lib , rustPlatform , clangStdenv , fetchFromGitHub , linkFarm , fetchgit , runCommand , gn , ninja , makeWrapper , pkg-config , python3 , removeReferencesTo , xcbuild , SDL2 , fontconfig , xorg , stdenv , darwin , libglvnd , libxkbcommon , enableWayland ? stdenv.isLinux , wayland }: rustPlatform.buildRustPackage.override { stdenv = clangStdenv; } rec { pname = "neovide"; version = "0.12.0"; src = fetchFromGitHub { owner = "neovide"; repo = "neovide"; rev = version; sha256 = "sha256-m3ZdzdmkW69j1sZ9h7M1m5fDNnJ7BM7nwYPx7QhsIso="; }; cargoSha256 = "sha256-AAHMx4xxbC/JdmAPE2bub7qdF5sFNWjqXI1nuCUxsZA="; SKIA_SOURCE_DIR = let repo = fetchFromGitHub { owner = "rust-skia"; repo = "skia"; # see rust-skia:skia-bindings/Cargo.toml#package.metadata skia rev = "m119-0.67.3"; sha256 = "sha256-U75NuJnQa5+SNlOrsBmdlvflGdjo3el63EeIsbnE7ms="; }; # The externals for skia are taken from skia/DEPS externals = linkFarm "skia-externals" (lib.mapAttrsToList (name: value: { inherit name; path = fetchgit value; }) (lib.importJSON ./skia-externals.json)); in runCommand "source" { } '' cp -R ${repo} $out chmod -R +w $out ln -s ${externals} $out/third_party/externals '' ; SKIA_GN_COMMAND = "${gn}/bin/gn"; SKIA_NINJA_COMMAND = "${ninja}/bin/ninja"; nativeBuildInputs = [ makeWrapper pkg-config python3 # skia removeReferencesTo ] ++ lib.optionals stdenv.isDarwin [ xcbuild ]; # All tests passes but at the end cargo prints for unknown reason: # error: test failed, to rerun pass '--bin neovide' # Increasing the loglevel did not help. In a nix-shell environment # the failure do not occure. doCheck = false; buildInputs = [ SDL2 fontconfig rustPlatform.bindgenHook ] ++ lib.optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.AppKit ]; postFixup = let libPath = lib.makeLibraryPath ([ libglvnd libxkbcommon xorg.libXcursor xorg.libXext xorg.libXrandr xorg.libXi ] ++ lib.optionals enableWayland [ wayland ]); in '' # library skia embeds the path to its sources remove-references-to -t "$SKIA_SOURCE_DIR" \ $out/bin/neovide wrapProgram $out/bin/neovide \ --prefix LD_LIBRARY_PATH : ${libPath} ''; postInstall = '' for n in 16x16 32x32 48x48 256x256; do install -m444 -D "assets/neovide-$n.png" \ "$out/share/icons/hicolor/$n/apps/neovide.png" done install -m444 -Dt $out/share/icons/hicolor/scalable/apps assets/neovide.svg install -m444 -Dt $out/share/applications assets/neovide.desktop ''; disallowedReferences = [ SKIA_SOURCE_DIR ]; meta = with lib; { description = "This is a simple graphical user interface for Neovim."; homepage = "https://github.com/neovide/neovide"; changelog = "https://github.com/neovide/neovide/releases/tag/${version}"; license = with licenses; [ mit ]; maintainers = with maintainers; [ ck3d multisn8 ]; platforms = platforms.all; badPlatforms = platforms.darwin; }; }