2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, rustPlatform, cmake, libzip, gnupg,
|
2018-06-12 17:55:33 +00:00
|
|
|
# Darwin
|
|
|
|
libiconv, CoreFoundation, Security }:
|
2018-02-22 11:18:10 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
2019-08-31 11:41:23 +00:00
|
|
|
pname = "sit";
|
2019-06-18 12:41:20 +00:00
|
|
|
version = "0.4.1";
|
2018-02-22 11:18:10 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2018-06-12 17:55:33 +00:00
|
|
|
owner = "sit-fyi";
|
2018-02-22 11:18:10 +00:00
|
|
|
repo = "sit";
|
|
|
|
rev = "v${version}";
|
2019-06-18 12:41:20 +00:00
|
|
|
sha256 = "06xkhlfix0h6di6cnvc4blbj3mjy90scbh89dvywbx16wjlc79pf";
|
2018-02-22 11:18:10 +00:00
|
|
|
};
|
|
|
|
|
2020-12-31 07:48:55 +00:00
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
buildInputs = [ libzip gnupg ]
|
2021-01-15 13:21:58 +00:00
|
|
|
++ (lib.optionals stdenv.isDarwin [ libiconv CoreFoundation Security ]);
|
2018-05-06 16:35:01 +00:00
|
|
|
|
2018-06-12 17:55:33 +00:00
|
|
|
preCheck = ''
|
|
|
|
export HOME=$(mktemp -d)
|
|
|
|
'';
|
2018-02-22 11:18:10 +00:00
|
|
|
|
2021-05-07 11:00:49 +00:00
|
|
|
cargoSha256 = "1ghr01jcq12ddna5qadvjy6zbgqgma5nf0qv06ayxnra37d2l92l";
|
2018-05-07 20:33:51 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-04-13 14:57:21 +00:00
|
|
|
description = "Serverless Information Tracker";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://sit.fyi/";
|
2018-02-22 11:18:10 +00:00
|
|
|
license = with licenses; [ asl20 /* or */ mit ];
|
2018-05-06 16:35:01 +00:00
|
|
|
maintainers = with maintainers; [ dywedir yrashk ];
|
2020-03-07 20:28:56 +00: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 11:18:10 +00:00
|
|
|
};
|
|
|
|
}
|