2020-03-07 21:28:56 +01:00
|
|
|
{ stdenv, fetchFromGitHub, rustPlatform, cmake, libzip, gnupg,
|
2018-06-12 19:55:33 +02:00
|
|
|
# Darwin
|
|
|
|
libiconv, CoreFoundation, Security }:
|
2018-02-22 12:18:10 +01:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
2019-08-31 13:41:23 +02:00
|
|
|
pname = "sit";
|
2019-06-18 14:41:20 +02:00
|
|
|
version = "0.4.1";
|
2018-02-22 12:18:10 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2018-06-12 19:55:33 +02:00
|
|
|
owner = "sit-fyi";
|
2018-02-22 12:18:10 +01:00
|
|
|
repo = "sit";
|
|
|
|
rev = "v${version}";
|
2019-06-18 14:41:20 +02:00
|
|
|
sha256 = "06xkhlfix0h6di6cnvc4blbj3mjy90scbh89dvywbx16wjlc79pf";
|
2018-02-22 12:18:10 +01:00
|
|
|
};
|
|
|
|
|
2018-06-12 19:55:33 +02:00
|
|
|
buildInputs = [ cmake libzip gnupg ] ++
|
|
|
|
(if stdenv.isDarwin then [ libiconv CoreFoundation Security ] else []);
|
2018-05-06 18:35:01 +02:00
|
|
|
|
2018-06-12 19:55:33 +02:00
|
|
|
preCheck = ''
|
|
|
|
export HOME=$(mktemp -d)
|
|
|
|
'';
|
2018-02-22 12:18:10 +01:00
|
|
|
|
2020-03-07 21:28:56 +01:00
|
|
|
cargoSha256 = "092yfpr2svp1qy7xis1q0sdkbsjmmswmdwb0rklrc0yhydcsghp9";
|
2018-05-07 22:33:51 +02:00
|
|
|
|
2018-02-22 12:18:10 +01:00
|
|
|
meta = with stdenv.lib; {
|
2018-04-13 16:57:21 +02:00
|
|
|
description = "Serverless Information Tracker";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://sit.fyi/";
|
2018-02-22 12:18:10 +01:00
|
|
|
license = with licenses; [ asl20 /* or */ mit ];
|
2018-05-06 18:35:01 +02:00
|
|
|
maintainers = with maintainers; [ dywedir yrashk ];
|
2020-03-07 21:28:56 +01:00
|
|
|
# Upstream has not had a release in several years, and dependencies no
|
|
|
|
# longer compile with the latest Rust compiler.
|
|
|
|
broken = true;
|
2018-02-22 12:18:10 +01:00
|
|
|
};
|
|
|
|
}
|