tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
collision: 3.9.0 -> 3.10.0
sund3RRR
8 months ago
03b7b645
51724280
+22
-21
3 changed files
expand all
collapse all
unified
split
pkgs
by-name
co
collision
package.nix
shards.nix
top-level
all-packages.nix
+15
-12
pkgs/applications/misc/collision/default.nix
pkgs/by-name/co/collision/package.nix
···
21
21
22
22
crystal.buildCrystalPackage rec {
23
23
pname = "Collision";
24
24
-
version = "3.9.0";
24
24
+
version = "3.10.0";
25
25
26
26
src = fetchFromGitHub {
27
27
owner = "GeopJr";
28
28
repo = "Collision";
29
29
rev = "v${version}";
30
30
-
hash = "sha256-c/74LzDM63w5zW8z2T8o4Efvuzj791/zTSKEDN32uak=";
30
30
+
hash = "sha256-ZXGhMicwlkXUw8I6HUNVxY4vCaVixdV76+wYn34Py6Q=";
31
31
};
32
32
33
33
postPatch = ''
···
39
39
copyShardDeps = true;
40
40
41
41
preBuild = ''
42
42
-
cd lib/gi-crystal && shards build -Dpreview_mt --release --no-debug
43
43
-
cd ../.. && mkdir bin/ && cp lib/gi-crystal/bin/gi-crystal bin/
42
42
+
cd lib/gi-crystal && shards build -Dpreview_mt --release --no-debug && \
43
43
+
install -Dm755 bin/gi-crystal ../../bin/gi-crystal && cd ../..
44
44
'';
45
45
46
46
# Crystal compiler has a strange issue with OpenSSL. The project will not compile due to
47
47
# main_module:(.text+0x6f0): undefined reference to `SSL_library_init'
48
48
# There is an explanation for this https://danilafe.com/blog/crystal_nix_revisited/
49
49
# Shortly, adding pkg-config to buildInputs along with openssl fixes the issue.
50
50
-
51
51
-
nativeBuildInputs = [
52
52
-
wrapGAppsHook4
53
53
-
pkg-config
54
54
-
gobject-introspection
55
55
-
] ++ lib.optionals stdenv.hostPlatform.isDarwin [ desktopToDarwinBundle ];
50
50
+
nativeBuildInputs =
51
51
+
[
52
52
+
wrapGAppsHook4
53
53
+
pkg-config
54
54
+
gobject-introspection
55
55
+
]
56
56
+
++ lib.optionals stdenv.hostPlatform.isDarwin [
57
57
+
desktopToDarwinBundle
58
58
+
];
56
59
57
60
buildInputs = [
58
61
libadwaita
···
82
85
passthru = {
83
86
updateScript = _experimental-update-script-combinators.sequence [
84
87
(gitUpdater { rev-prefix = "v"; })
85
85
-
(_experimental-update-script-combinators.copyAttrOutputToFile "collision.shardLock" ./shard.lock)
88
88
+
(_experimental-update-script-combinators.copyAttrOutputToFile "collision.shardLock" "./shard.lock")
86
89
{
87
90
command = [
88
91
(writeShellScript "update-lock" "cd $1; ${lib.getExe crystal2nix}")
···
93
96
{
94
97
command = [
95
98
"rm"
96
96
-
./shard.lock
99
99
+
"./shard.lock"
97
100
];
98
101
supportedFeatures = [ "silent" ];
99
102
}
+7
-7
pkgs/applications/misc/collision/shards.nix
pkgs/by-name/co/collision/shards.nix
···
1
1
{
2
2
blake3 = {
3
3
url = "https://github.com/geopjr/blake3.cr.git";
4
4
-
rev = "v1.3.0";
5
5
-
sha256 = "0pc3h7b5gfkmxlw708qaqjfzjvv5ig3iwxxainq6pwfhpff4a5wd";
4
4
+
rev = "v1.4.0";
5
5
+
sha256 = "1kp3rqddcsjj15syfnfvsx694nmpjzxmgawnf7y7dxdakk3przlw";
6
6
};
7
7
gettext = {
8
8
url = "https://github.com/geopjr/gettext.cr.git";
···
11
11
};
12
12
gi-crystal = {
13
13
url = "https://github.com/hugopl/gi-crystal.git";
14
14
-
rev = "v0.24.0";
15
15
-
sha256 = "0x356xn35008l573qhyl1sdddc9cc5i3bsa4c7865kgq9521ifyh";
14
14
+
rev = "v0.25.0";
15
15
+
sha256 = "0lgs85khg6yzmw7vnkjxygrga1618440hayjc51jmjcfh2lff1k2";
16
16
};
17
17
gtk4 = {
18
18
url = "https://github.com/hugopl/gtk4.cr.git";
···
25
25
sha256 = "06wgqxwyib5416yp53j2iwcbr3bl4jjxb1flm7z103l365par694";
26
26
};
27
27
libadwaita = {
28
28
-
url = "https://github.com/geopjr/libadwaita.cr.git";
29
29
-
rev = "cffabb56e911d2a90c53c2fd14d6bd08bf5ac446";
30
30
-
sha256 = "0gcq04vgxg0vff9fcalgzq9phq0y76diihkzhlfn91bdxwkx7rl3";
28
28
+
url = "https://github.com/hugopl/libadwaita.cr.git";
29
29
+
rev = "v0.1.0";
30
30
+
sha256 = "13iqij1rwqdlsd9gls3gz4i4frlsda3yasdbbmrzpa8d3qm3p8yq";
31
31
};
32
32
non-blocking-spawn = {
33
33
url = "https://github.com/geopjr/non-blocking-spawn.git";
-2
pkgs/top-level/all-packages.nix
···
351
351
perlPackages = perl538Packages;
352
352
};
353
353
354
354
-
collision = callPackage ../applications/misc/collision { };
355
355
-
356
354
coolercontrol = recurseIntoAttrs (callPackage ../applications/system/coolercontrol { });
357
355
358
356
copilot-language-server-fhs = copilot-language-server.fhs;