16 _experimental-update-script-combinators,
22 crystal.buildCrystalPackage rec {
26 src = fetchFromGitHub {
30 hash = "sha256-c/74LzDM63w5zW8z2T8o4Efvuzj791/zTSKEDN32uak=";
34 substituteInPlace Makefile \
35 --replace-fail 'gtk-update-icon-cache $(PREFIX)/share/icons/hicolor' 'true'
38 shardsFile = ./shards.nix;
42 cd lib/gi-crystal && shards build -Dpreview_mt --release --no-debug
43 cd ../.. && mkdir bin/ && cp lib/gi-crystal/bin/gi-crystal bin/
46 # Crystal compiler has a strange issue with OpenSSL. The project will not compile due to
47 # main_module:(.text+0x6f0): undefined reference to `SSL_library_init'
48 # There is an explanation for this https://danilafe.com/blog/crystal_nix_revisited/
49 # Shortly, adding pkg-config to buildInputs along with openssl fixes the issue.
55 ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ desktopToDarwinBundle ];
62 python3.pkgs.pygobject3
71 doInstallCheck = false;
79 install -Dm555 ./nautilus-extension/collision-extension.py -t $out/share/nautilus-python/extensions
83 updateScript = _experimental-update-script-combinators.sequence [
84 (gitUpdater { rev-prefix = "v"; })
85 (_experimental-update-script-combinators.copyAttrOutputToFile "collision.shardLock" ./shard.lock)
88 (writeShellScript "update-lock" "cd $1; ${lib.getExe crystal2nix}")
91 supportedFeatures = [ "silent" ];
98 supportedFeatures = [ "silent" ];
101 shardLock = runCommand "shard.lock" { inherit src; } ''
102 cp $src/shard.lock $out
107 description = "Check hashes for your files";
108 homepage = "https://github.com/GeopJr/Collision";
109 license = licenses.bsd2;
110 mainProgram = "collision";
111 maintainers = with maintainers; [ sund3RRR ] ++ lib.teams.gnome-circle.members;