2017-10-15 03:59:30 -07:00
|
|
|
{ stdenv
|
|
|
|
, fetchFromGitHub
|
2019-03-04 15:01:19 -08:00
|
|
|
, openssl_1_0_2
|
2017-10-15 03:59:30 -07:00
|
|
|
, zlib
|
|
|
|
, libssh
|
|
|
|
, cmake
|
|
|
|
, perl
|
|
|
|
, pkgconfig
|
|
|
|
, rustPlatform
|
2018-05-19 19:03:09 -07:00
|
|
|
, curl
|
|
|
|
, libiconv
|
|
|
|
, CoreFoundation
|
|
|
|
, Security
|
2017-10-15 03:59:30 -07:00
|
|
|
}:
|
|
|
|
|
|
|
|
with rustPlatform;
|
|
|
|
|
|
|
|
buildRustPackage rec {
|
2019-08-31 04:41:23 -07:00
|
|
|
pname = "git-dit";
|
2017-10-15 03:59:30 -07:00
|
|
|
version = "0.4.0";
|
2017-02-24 07:38:10 -08:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "neithernut";
|
|
|
|
repo = "git-dit";
|
|
|
|
rev = "v${version}";
|
2017-10-15 03:59:30 -07:00
|
|
|
sha256 = "1sx6sc2dj3l61gbiqz8vfyhw5w4xjdyfzn1ixz0y8ipm579yc7a2";
|
2017-02-24 07:38:10 -08:00
|
|
|
};
|
|
|
|
|
2020-02-13 18:00:26 -08:00
|
|
|
# Delete this on next update; see #79975 for details
|
|
|
|
legacyCargoFetcher = true;
|
|
|
|
|
2019-05-25 04:03:08 -07:00
|
|
|
cargoSha256 = "10852131aizfw9j1yl4gz180h4gd8y5ymx3wmf5v9cmqiqxy8bgy";
|
2017-02-24 07:38:10 -08:00
|
|
|
|
2017-10-15 03:59:30 -07:00
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
pkgconfig
|
|
|
|
perl
|
|
|
|
];
|
2017-02-24 07:38:10 -08:00
|
|
|
|
2017-10-15 03:59:30 -07:00
|
|
|
buildInputs = [
|
2019-03-04 15:01:19 -08:00
|
|
|
openssl_1_0_2
|
2017-10-15 03:59:30 -07:00
|
|
|
libssh
|
|
|
|
zlib
|
2018-05-19 19:03:09 -07:00
|
|
|
] ++ stdenv.lib.optionals (stdenv.isDarwin) [
|
|
|
|
curl
|
|
|
|
libiconv
|
|
|
|
CoreFoundation
|
|
|
|
Security
|
2017-10-15 03:59:30 -07:00
|
|
|
];
|
2017-02-24 07:38:10 -08:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2017-02-25 02:48:22 -08:00
|
|
|
inherit (src.meta) homepage;
|
2017-02-24 07:38:10 -08:00
|
|
|
description = "Decentralized Issue Tracking for git";
|
|
|
|
license = licenses.gpl2;
|
2019-02-20 10:52:48 -08:00
|
|
|
maintainers = with maintainers; [ Profpatsch matthiasbeyer ];
|
2017-02-24 07:38:10 -08:00
|
|
|
};
|
|
|
|
}
|