1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-04 19:45:54 +00:00
nixpkgs/pkgs/applications/version-management/sit/default.nix
2018-06-12 19:55:33 +02:00

33 lines
872 B
Nix

{ stdenv, fetchFromGitHub, rustPlatform, cmake, libzip, gnupg,
# Darwin
libiconv, CoreFoundation, Security }:
rustPlatform.buildRustPackage rec {
name = "sit-${version}";
version = "0.4.0";
src = fetchFromGitHub {
owner = "sit-fyi";
repo = "sit";
rev = "v${version}";
sha256 = "10ycs6vc7mfzxnxrki09xn974pcwh196h1pfnsds98x6r87hxkpn";
};
buildInputs = [ cmake libzip gnupg ] ++
(if stdenv.isDarwin then [ libiconv CoreFoundation Security ] else []);
preCheck = ''
export HOME=$(mktemp -d)
'';
cargoSha256 = "023anmnprxbsvqww1b1bdyfhbhjh1ah2kc67cdihvdvi4lqdmbia";
meta = with stdenv.lib; {
description = "Serverless Information Tracker";
homepage = https://sit.fyi/;
license = with licenses; [ asl20 /* or */ mit ];
maintainers = with maintainers; [ dywedir yrashk ];
platforms = platforms.all;
};
}