nixpkgs/pkgs/applications/version-management/git-and-tools/git-dit/default.nix

56 lines
922 B
Nix
Raw Normal View History

2017-10-15 12:59:30 +02:00
{ stdenv
, fetchFromGitHub
, openssl
, gcc
, zlib
, libssh
, cmake
, perl
, pkgconfig
, rustPlatform
2018-05-20 04:03:09 +02:00
, curl
, libiconv
, CoreFoundation
, Security
2017-10-15 12:59:30 +02:00
}:
with rustPlatform;
buildRustPackage rec {
2017-02-24 16:38:10 +01:00
name = "git-dit-${version}";
2017-10-15 12:59:30 +02:00
version = "0.4.0";
2017-02-24 16:38:10 +01:00
src = fetchFromGitHub {
owner = "neithernut";
repo = "git-dit";
rev = "v${version}";
2017-10-15 12:59:30 +02:00
sha256 = "1sx6sc2dj3l61gbiqz8vfyhw5w4xjdyfzn1ixz0y8ipm579yc7a2";
2017-02-24 16:38:10 +01:00
};
cargoSha256 = "08zbvjwjdpv2sbj6mh73py82inhs18jvmh8m9k4l94fcz6ykgqwr";
2017-02-24 16:38:10 +01:00
2017-10-15 12:59:30 +02:00
nativeBuildInputs = [
cmake
pkgconfig
perl
];
2017-02-24 16:38:10 +01:00
2017-10-15 12:59:30 +02:00
buildInputs = [
openssl
libssh
zlib
2018-05-20 04:03:09 +02:00
] ++ stdenv.lib.optionals (stdenv.isDarwin) [
curl
libiconv
CoreFoundation
Security
2017-10-15 12:59:30 +02:00
];
2017-02-24 16:38:10 +01:00
meta = with stdenv.lib; {
2017-02-25 11:48:22 +01:00
inherit (src.meta) homepage;
2017-02-24 16:38:10 +01:00
description = "Decentralized Issue Tracking for git";
license = licenses.gpl2;
maintainers = with maintainers; [ Profpatsch ];
2017-02-24 16:38:10 +01:00
};
}