@@ -1,25 +1,30 @@
1−{ stdenv, fetchFromGitHub, rustPlatform, cmake, libzip }:
1+{ stdenv, fetchFromGitHub, rustPlatform, cmake, libzip, gnupg,
2+ # Darwin
3+ libiconv, CoreFoundation, Security }:
24
35rustPlatform.buildRustPackage rec {
46 name = "sit-${version}";
5− version = "0.3.2";
7+ version = "0.4.0";
68
79 src = fetchFromGitHub {
8− owner = "sit-it";
10+ owner = "sit-fyi";
911 repo = "sit";
1012 rev = "v${version}";
11− sha256 = "0lhl4rrfmsi76498mg5si2xagl8l2pi5d92dxhsyzszpwn5jdp57";
13+ sha256 = "10ycs6vc7mfzxnxrki09xn974pcwh196h1pfnsds98x6r87hxkpn";
1214 };
1315
14− buildInputs = [ cmake libzip ];
16+ buildInputs = [ cmake libzip gnupg ] ++
17+ (if stdenv.isDarwin then [ libiconv CoreFoundation Security ] else []);
1518
16− cargoSha256 = "102haqix13nwcncng1s8qkw68spn6fhh3vysk2nbahw6f78zczqg";
19+ preCheck = ''
20+ export HOME=$(mktemp -d)
21+ '';
1722
18− patches = [ ./aarch64-isel.patch ];
23+ cargoSha256 = "023anmnprxbsvqww1b1bdyfhbhjh1ah2kc67cdihvdvi4lqdmbia";
1924
2025 meta = with stdenv.lib; {
2126 description = "Serverless Information Tracker";
22− homepage = https://sit.sh/;
27+ homepage = https://sit.fyi/;
2328 license = with licenses; [ asl20 /* or */ mit ];
2429 maintainers = with maintainers; [ dywedir yrashk ];
2530 platforms = platforms.all;