2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv
|
2020-01-09 16:04:37 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, rustPlatform
|
2021-05-15 19:34:15 +00:00
|
|
|
, libiconv, Security
|
2021-01-19 06:50:56 +00:00
|
|
|
, pkg-config, openssl
|
2020-01-09 16:04:37 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "git-workspace";
|
2022-01-16 08:52:12 +00:00
|
|
|
version = "0.9.0";
|
2020-01-09 16:04:37 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "orf";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2022-01-16 08:52:12 +00:00
|
|
|
sha256 = "sha256-uP1sex4Hx57ZsqVG4b3809FzFB10Un48+vbwaWZ7HSg=";
|
2020-01-09 16:04:37 +00:00
|
|
|
};
|
|
|
|
|
2022-01-16 08:52:12 +00:00
|
|
|
cargoSha256 = "sha256-mkrC8uzfNpL0MQUMjcNaJf5c1wSdlBVg8AMgc/zxM6A=";
|
2020-01-09 16:04:37 +00:00
|
|
|
|
2021-01-19 06:50:56 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2021-05-15 19:34:15 +00:00
|
|
|
buildInputs = [ openssl ]
|
|
|
|
++ lib.optionals stdenv.isDarwin [ libiconv Security ];
|
2020-01-09 16:04:37 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-01-09 16:04:37 +00:00
|
|
|
description = "Sync personal and work git repositories from multiple providers";
|
|
|
|
homepage = "https://github.com/orf/git-workspace";
|
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = with maintainers; [ misuzu ];
|
|
|
|
};
|
|
|
|
}
|