gi-crystal: 0.24.0 -> 0.25.1 (#444263)
This commit is contained in:
@@ -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 ];
|
||||
|
||||
@@ -1,10 +0,0 @@
|
||||
--- 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
|
||||
Reference in New Issue
Block a user