https://github.com/orf/git-workspace/releases/tag/v1.2.1 https://github.com/orf/git-workspace/compare/v1.1.0...v1.2.1
40 lines
902 B
Nix
40 lines
902 B
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, rustPlatform
|
|
, libiconv
|
|
, Security
|
|
, pkg-config
|
|
, openssl
|
|
, testers
|
|
, git-workspace
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "git-workspace";
|
|
version = "1.2.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "orf";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-Ppb42u31/iJd743vKX+5RdI7aITsWg9Jg0Aheguep5s=";
|
|
};
|
|
|
|
cargoSha256 = "sha256-O0wyNdgY1meEBJh/tEHxwzjNQdzxbKn5Ji+gdd146vQ=";
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
buildInputs = [ openssl ]
|
|
++ lib.optionals stdenv.isDarwin [ libiconv Security ];
|
|
|
|
passthru.tests.version = testers.testVersion { package = git-workspace; };
|
|
|
|
meta = with lib; {
|
|
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 ];
|
|
};
|
|
}
|