2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv
|
2020-01-09 16:04:37 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, rustPlatform
|
2021-05-15 20:34:15 +01: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";
|
2021-01-18 21:37:14 +00:00
|
|
|
version = "0.8.0";
|
2020-01-09 16:04:37 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "orf";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-01-18 21:37:14 +00:00
|
|
|
sha256 = "sha256-//EyGhuE8rMRL03TtECIi0X51/p/GvTqvr2FRQEIqFA=";
|
2020-01-09 16:04:37 +00:00
|
|
|
};
|
|
|
|
|
2021-05-07 12:00:49 +01:00
|
|
|
cargoSha256 = "sha256-X0jRwDUVzS1s2tG6N2RDaFqwUUAT+mPMEft11VkJy5A=";
|
2020-01-09 16:04:37 +00:00
|
|
|
|
2021-01-19 06:50:56 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2021-05-15 20:34:15 +01: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 ];
|
|
|
|
};
|
|
|
|
}
|