1{ lib
2, stdenv
3, fetchFromGitHub
4, rustPlatform
5, libiconv
6, Security
7, pkg-config
8, openssl
9, testers
10, git-workspace
11}:
12
13rustPlatform.buildRustPackage rec {
14 pname = "git-workspace";
15 version = "1.2.1";
16
17 src = fetchFromGitHub {
18 owner = "orf";
19 repo = pname;
20 rev = "v${version}";
21 sha256 = "sha256-Ppb42u31/iJd743vKX+5RdI7aITsWg9Jg0Aheguep5s=";
22 };
23
24 cargoSha256 = "sha256-O0wyNdgY1meEBJh/tEHxwzjNQdzxbKn5Ji+gdd146vQ=";
25
26 nativeBuildInputs = [ pkg-config ];
27
28 buildInputs = [ openssl ]
29 ++ lib.optionals stdenv.isDarwin [ libiconv Security ];
30
31 passthru.tests.version = testers.testVersion { package = git-workspace; };
32
33 meta = with lib; {
34 description = "Sync personal and work git repositories from multiple providers";
35 homepage = "https://github.com/orf/git-workspace";
36 license = with licenses; [ mit ];
37 maintainers = with maintainers; [ misuzu ];
38 };
39}