Skip to content

Usage and compiling on NixOS #1623

@Tsunami014

Description

@Tsunami014

Bug Description

So I have been avoiding this for a little too long now.

tldr; I can use prebuilt versions of godsvg with some config I made but it gives many errors throughout (tho none actually crash it or impede on functionality... I think), but I get many errors when compiling the code.

I'm testing all this with these packages:

    wayland
    libxkbcommon
    mesa
    libGL

I currently use v1.0-alpha14 with a custom script that yoinks the current version

Here it is if you are interested
{ stdenv, pkgs, lib, fetchurl, unzip, autoPatchelfHook }:

let
pname = "godsvg";
version = "v1.0-alpha14";

libs = with pkgs; [
wayland
libxkbcommon
mesa
libGL
];
in stdenv.mkDerivation rec {
inherit pname version;

src = fetchurl {
url = "https://github.com/MewPurPur/GodSVG/releases/download/${version}/GodSVG.Linux.zip";
sha256 = "sha256-G3nY8ufLTXwqPJXOCb0DypNwZHjQt18ZZNCuCBZhE6A=";
};

nativeBuildInputs = [
unzip
pkgs.makeWrapper
autoPatchelfHook
];

unpackPhase = "unzip -q $src -d .";
installPhase = ''
mkdir -p $out/bin
install -m755 GodSVG.x86_64 $out/bin/godsvg
wrapProgram $out/bin/godsvg
--prefix LD_LIBRARY_PATH : ${pkgs.lib.makeLibraryPath libs}
'';

meta = {
description = "GodSVG — structured SVG editor built with Godot (wrapped prebuilt release)";
homepage = "https://github.com/MewPurPur/GodSVG";
changelog = "https://github.com/MewPurPur/GodSVG/releases";
license = lib.licenses.mit;
sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
maintainers = with lib.maintainers; [];
platforms = lib.platforms.linux;
mainProgram = "godsvg";
};
}

I tried changing the url to the github action artifact for some recent commit but this version it prints at startup didn't change (maybe just caching): v4.6.stable.custom_build.89cea1439

So I tried downloading the source and compiling it with godot and I get these funny errors that stop me

ERROR: Failed to load script "res://src/ui_parts/previews.gd" with error "Compilation failed".
   at: load (modules/gdscript/gdscript.cpp:3041)
SCRIPT ERROR: Invalid call. Nonexistent function 'register_shortcuts' in base 'Nil'.
          at: _ready (res://src/ui_parts/editor_scene.gd:47)
          GDScript backtrace (most recent call first):
              [0] _ready (res://src/ui_parts/editor_scene.gd:47)

But with quite a significant number of files in the ui_ folders (and maybe others there were too many to check)

I also get a large amount of errors during the program's runtime too that are different. But it still runs anyway normally.

There are errors such as

ERROR: Attempt to disconnect a nonexistent connection from 'MoreOptions:<Button#214127609165>
'. Signal: 'visibility_changed', callable: ''.
   at: _disconnect (core/object/object.cpp:1733)
ERROR: Attempt to disconnect a nonexistent connection from '@SplitContainerDragger@2:<SplitCo
ntainerDragger#212382777860>'. Signal: 'minimum_size_changed', callable: ''.
   at: _disconnect (core/object/object.cpp:1733)

and

ERROR: Texture with GL ID of 28: leaked 1364 bytes.
   at: ~Utilities (drivers/gles3/storage/utilities.cpp:77)
ERROR: Texture with GL ID of 29: leaked 1364 bytes.
   at: ~Utilities (drivers/gles3/storage/utilities.cpp:77)

I don't know what anyone could do to help but I'm putting this here anyway if someone (or me) finds something.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions