Skip to content

Commit

Permalink
gfold: 3.0.0 -> 4.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
shanesveller committed May 13, 2022
1 parent fa76c98 commit 6320198
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 12 deletions.
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

0 comments on commit 6320198

Please sign in to comment.