6 , desktopToDarwinBundle
8 , gobject-introspection
14 crystal.buildCrystalPackage rec {
18 src = fetchFromGitHub {
22 hash = "sha256-YNMtiMSzDqBlJJTUntRtL6oXg+IuyAobQ4FYcwOdOas=";
24 patches = [ ./make.patch ];
25 shardsFile = ./collision-shards.nix;
27 # Crystal compiler has a strange issue with OpenSSL. The project will not compile due to
28 # main_module:(.text+0x6f0): undefined reference to `SSL_library_init'
29 # There is an explanation for this https://danilafe.com/blog/crystal_nix_revisited/
30 # Shortly, adding pkg-config to buildInputs along with openssl fixes the issue.
32 nativeBuildInputs = [ wrapGAppsHook4 pkg-config gobject-introspection gi-crystal ]
33 ++ lib.optionals stdenv.isDarwin [ desktopToDarwinBundle ];
34 buildInputs = [ libadwaita openssl libxml2 ];
36 buildTargets = ["bindings" "build"];
39 doInstallCheck = false;
41 installTargets = ["desktop" "install"];
44 description = "Check hashes for your files";
45 homepage = "https://github.com/GeopJr/Collision";
46 license = licenses.bsd2;
47 mainProgram = "collision";
48 maintainers = with maintainers; [ sund3RRR ];