062210bdff
A recent upgrade of cargo-vendor changed its output slightly, which broke all cargoSha256 hashes in nixpkgs. See https://github.com/NixOS/nixpkgs/issues/60668 for more information. Since then, a few hashes have been fixed in master by hand, but there were a lot still to do, so I did all of the ones left over with some scripts I wrote. The one hash I wasn’t able to update was habitat's, because it’s currently broken and the build doesn’t get far enough to produce a hash anyway.
54 lines
930 B
Nix
54 lines
930 B
Nix
{ stdenv
|
|
, fetchFromGitHub
|
|
, openssl
|
|
, zlib
|
|
, libssh
|
|
, cmake
|
|
, perl
|
|
, pkgconfig
|
|
, rustPlatform
|
|
, curl
|
|
, libiconv
|
|
, CoreFoundation
|
|
, Security
|
|
}:
|
|
|
|
with rustPlatform;
|
|
|
|
buildRustPackage rec {
|
|
name = "git-dit-${version}";
|
|
version = "0.4.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "neithernut";
|
|
repo = "git-dit";
|
|
rev = "v${version}";
|
|
sha256 = "1sx6sc2dj3l61gbiqz8vfyhw5w4xjdyfzn1ixz0y8ipm579yc7a2";
|
|
};
|
|
|
|
cargoSha256 = "10852131aizfw9j1yl4gz180h4gd8y5ymx3wmf5v9cmqiqxy8bgy";
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
pkgconfig
|
|
perl
|
|
];
|
|
|
|
buildInputs = [
|
|
openssl
|
|
libssh
|
|
zlib
|
|
] ++ stdenv.lib.optionals (stdenv.isDarwin) [
|
|
curl
|
|
libiconv
|
|
CoreFoundation
|
|
Security
|
|
];
|
|
|
|
meta = with stdenv.lib; {
|
|
inherit (src.meta) homepage;
|
|
description = "Decentralized Issue Tracking for git";
|
|
license = licenses.gpl2;
|
|
maintainers = with maintainers; [ Profpatsch matthiasbeyer ];
|
|
};
|
|
}
|