nixpkgs/pkgs/applications/version-management/sit/default.nix

33 lines
862 B
Nix
Raw Normal View History

2018-06-12 17:55:33 +00:00
{ stdenv, fetchFromGitHub, rustPlatform, cmake, libzip, gnupg,
# 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";
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}";
sha256 = "06xkhlfix0h6di6cnvc4blbj3mjy90scbh89dvywbx16wjlc79pf";
2018-02-22 11:18:10 +00:00
};
2018-06-12 17:55:33 +00:00
buildInputs = [ cmake libzip gnupg ] ++
(if stdenv.isDarwin then [ libiconv CoreFoundation Security ] else []);
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
cargoSha256 = "0kijx7s7zh6yisrsjz213h9x5jx43ixr44vy5rb3wwbn9dgsr528";
2018-02-22 11:18:10 +00:00
meta = with stdenv.lib; {
2018-04-13 14:57:21 +00:00
description = "Serverless Information Tracker";
2018-06-12 17:55:33 +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 ];
2018-02-22 11:18:10 +00:00
platforms = platforms.all;
};
}