2018-06-12 18:55:33 +01:00
|
|
|
{ stdenv, fetchFromGitHub, rustPlatform, cmake, libzip, gnupg,
|
|
|
|
# Darwin
|
|
|
|
libiconv, CoreFoundation, Security }:
|
2018-02-22 11:18:10 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
name = "sit-${version}";
|
2018-06-12 18:55:33 +01:00
|
|
|
version = "0.4.0";
|
2018-02-22 11:18:10 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2018-06-12 18:55:33 +01:00
|
|
|
owner = "sit-fyi";
|
2018-02-22 11:18:10 +00:00
|
|
|
repo = "sit";
|
|
|
|
rev = "v${version}";
|
2018-06-12 18:55:33 +01:00
|
|
|
sha256 = "10ycs6vc7mfzxnxrki09xn974pcwh196h1pfnsds98x6r87hxkpn";
|
2018-02-22 11:18:10 +00:00
|
|
|
};
|
|
|
|
|
2018-06-12 18:55:33 +01:00
|
|
|
buildInputs = [ cmake libzip gnupg ] ++
|
|
|
|
(if stdenv.isDarwin then [ libiconv CoreFoundation Security ] else []);
|
2018-05-06 17:35:01 +01:00
|
|
|
|
2018-06-12 18:55:33 +01:00
|
|
|
preCheck = ''
|
|
|
|
export HOME=$(mktemp -d)
|
|
|
|
'';
|
2018-02-22 11:18:10 +00:00
|
|
|
|
2018-06-12 18:55:33 +01:00
|
|
|
cargoSha256 = "023anmnprxbsvqww1b1bdyfhbhjh1ah2kc67cdihvdvi4lqdmbia";
|
2018-05-07 21:33:51 +01:00
|
|
|
|
2018-02-22 11:18:10 +00:00
|
|
|
meta = with stdenv.lib; {
|
2018-04-13 15:57:21 +01:00
|
|
|
description = "Serverless Information Tracker";
|
2018-06-12 18:55:33 +01:00
|
|
|
homepage = https://sit.fyi/;
|
2018-02-22 11:18:10 +00:00
|
|
|
license = with licenses; [ asl20 /* or */ mit ];
|
2018-05-06 17:35:01 +01:00
|
|
|
maintainers = with maintainers; [ dywedir yrashk ];
|
2018-02-22 11:18:10 +00:00
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|