2023-01-20 10:41:00 +00:00
|
|
|
{ lib, rustPlatform, fetchFromGitHub, stdenv, darwin, git }:
|
2022-10-21 18:38:19 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "git-nomad";
|
2023-11-16 04:20:00 +00:00
|
|
|
version = "0.7.1";
|
2022-10-21 18:38:19 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "rraval";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2023-11-16 04:20:00 +00:00
|
|
|
sha256 = "sha256-N+iPr389l9PDfJIhvRL6ziGSPI6pgvfdGX6wxmapLhA=";
|
2022-10-21 18:38:19 +00:00
|
|
|
};
|
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
cargoHash = "sha256-7CZC29y9dLpyanolO+epKd0KwmRc1iGY+sPM9f/j5hk=";
|
2022-10-21 18:38:19 +00:00
|
|
|
|
2023-01-20 10:41:00 +00:00
|
|
|
buildInputs = lib.optionals stdenv.isDarwin [
|
|
|
|
darwin.apple_sdk.frameworks.SystemConfiguration
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2023-01-20 10:41:00 +00:00
|
|
|
git
|
|
|
|
];
|
|
|
|
|
2022-10-21 18:38:19 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Synchronize work-in-progress git branches in a light weight fashion";
|
|
|
|
homepage = "https://github.com/rraval/git-nomad";
|
2023-01-20 10:41:00 +00:00
|
|
|
changelog = "https://github.com/rraval/git-nomad/blob/v${version}/CHANGELOG.md";
|
2022-10-21 18:38:19 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ rraval ];
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "git-nomad";
|
2022-10-21 18:38:19 +00:00
|
|
|
};
|
|
|
|
}
|