Unverified Commit 14b0ea65 authored by Gaétan Lepage's avatar Gaétan Lepage Committed by GitHub
Browse files

gi-crystal: 0.24.0 -> 0.25.1 (#444263)

parents bfdb0de0 23ee5052
Loading
Loading
Loading
Loading
+2 −5
Original line number Diff line number Diff line
@@ -7,20 +7,17 @@
}:
crystal.buildCrystalPackage rec {
  pname = "gi-crystal";
  version = "0.24.0";
  version = "0.25.1";

  src = fetchFromGitHub {
    owner = "hugopl";
    repo = "gi-crystal";
    rev = "v${version}";
    hash = "sha256-0LsYREn4zWLQYUTpNWJhLLHWmg7UQzxOoQiAMmw3ZXQ=";
    hash = "sha256-+sc36YjaVKBkrg8Ond4hCZoObnSHIU/jyMRalZ+OAwk=";
  };

  # Make sure gi-crystal picks up the name of the so or dylib and not the leading nix store path
  # when the package name happens to start with “lib”.
  patches = [
    ./src.patch
    ./store-friendly-library-name.patch
  ];

  nativeBuildInputs = [ gobject-introspection ];
+0 −10
Original line number Diff line number Diff line
--- a/src/generator/lib_gen.cr	1969-12-31 17:00:01.000000000 -0700
+++ b/src/generator/lib_gen.cr	2023-07-14 11:48:41.509397114 -0600
@@ -10,7 +10,7 @@
 
     private def libraries : Array(String)
       namespace.shared_libraries.map do |library|
-        library[/lib([^\/]+)\.(?:so|.+?\.dylib).*/, 1]
+        library[/(?:\/[^\/]*)+\/lib([^\/]+)\.(?:so|.+?\.dylib).*/, 1]
       end
     end
 No newline at end of file