Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gfold: 3.0.0 -> 4.0.0 #172368

Merged
merged 1 commit into from
May 14, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,28 +1,43 @@
{ lib, fetchFromGitHub, gitMinimal, makeWrapper, rustPlatform }:
{ fetchFromGitHub
, gitMinimal
, gfold
, lib
, libiconv
, makeWrapper
, rustPlatform
, Security
, stdenv
, testVersion
}:

rustPlatform.buildRustPackage rec {
let
pname = "gfold";
version = "3.0.0";
version = "4.0.0";
in
rustPlatform.buildRustPackage {
inherit pname version;

src = fetchFromGitHub {
owner = "nickgerace";
repo = pname;
rev = version;
sha256 = "0ss6vfrc6h3jlh5qilh82psd3vdnfawf1wl4cf64mfm4hm9dda63";
sha256 = "1yh5173qhi9bd41zss9k21nm0xnr2sa918kvlyr5xvzhq47rrwz5";
};

cargoSha256 = "09ywwgxm8l1p0jypp65zpqryjnb2g4gririf1dmqb9148dsj29x2";
cargoSha256 = "sha256-o2fMIlj+veTmhfqi7BVpxr3520SOwWLmVS2UU83EVjo=";

nativeBuildInputs = [ makeWrapper ];
buildInputs = lib.optionals stdenv.isDarwin [ libiconv Security ];

postInstall = ''
wrapProgram "$out/bin/gfold" --prefix PATH : "${gitMinimal}/bin"
'';
passthru.tests.version = testVersion {
package = gfold;
command = "gfold --version";
inherit version;
};

meta = with lib; {
inherit (src.meta) homepage;
description =
"A tool to help keep track of your Git repositories, written in Rust";
"CLI tool to help keep track of your Git repositories, written in Rust";
homepage = "https://github.com/nickgerace/gfold";
license = licenses.asl20;
maintainers = [ maintainers.shanesveller ];
platforms = platforms.unix;
Expand Down
4 changes: 3 additions & 1 deletion pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6161,7 +6161,9 @@ with pkgs;

gfbgraph = callPackage ../development/libraries/gfbgraph { };

gfold = callPackage ../applications/version-management/git-and-tools/gfold { };
gfold = callPackage ../applications/version-management/git-and-tools/gfold {
inherit (darwin.apple_sdk.frameworks) Security;
};

ggobi = callPackage ../tools/graphics/ggobi { };

Expand Down