Merge pull request #172368 from shanesveller/shanesveller/gfold-4.0

gfold: 3.0.0 -> 4.0.0

authored by Artturi and committed by GitHub b7a7846e eeab74c7

+29 -12
+26 -11
pkgs/applications/version-management/git-and-tools/gfold/default.nix
··· 1 - { lib, fetchFromGitHub, gitMinimal, makeWrapper, rustPlatform }: 1 + { fetchFromGitHub 2 + , gitMinimal 3 + , gfold 4 + , lib 5 + , libiconv 6 + , makeWrapper 7 + , rustPlatform 8 + , Security 9 + , stdenv 10 + , testVersion 11 + }: 2 12 3 - rustPlatform.buildRustPackage rec { 13 + let 4 14 pname = "gfold"; 5 - version = "3.0.0"; 15 + version = "4.0.0"; 16 + in 17 + rustPlatform.buildRustPackage { 18 + inherit pname version; 6 19 7 20 src = fetchFromGitHub { 8 21 owner = "nickgerace"; 9 22 repo = pname; 10 23 rev = version; 11 - sha256 = "0ss6vfrc6h3jlh5qilh82psd3vdnfawf1wl4cf64mfm4hm9dda63"; 24 + sha256 = "1yh5173qhi9bd41zss9k21nm0xnr2sa918kvlyr5xvzhq47rrwz5"; 12 25 }; 13 26 14 - cargoSha256 = "09ywwgxm8l1p0jypp65zpqryjnb2g4gririf1dmqb9148dsj29x2"; 27 + cargoSha256 = "sha256-o2fMIlj+veTmhfqi7BVpxr3520SOwWLmVS2UU83EVjo="; 15 28 16 - nativeBuildInputs = [ makeWrapper ]; 29 + buildInputs = lib.optionals stdenv.isDarwin [ libiconv Security ]; 17 30 18 - postInstall = '' 19 - wrapProgram "$out/bin/gfold" --prefix PATH : "${gitMinimal}/bin" 20 - ''; 31 + passthru.tests.version = testVersion { 32 + package = gfold; 33 + command = "gfold --version"; 34 + inherit version; 35 + }; 21 36 22 37 meta = with lib; { 23 - inherit (src.meta) homepage; 24 38 description = 25 - "A tool to help keep track of your Git repositories, written in Rust"; 39 + "CLI tool to help keep track of your Git repositories, written in Rust"; 40 + homepage = "https://github.com/nickgerace/gfold"; 26 41 license = licenses.asl20; 27 42 maintainers = [ maintainers.shanesveller ]; 28 43 platforms = platforms.unix;
+3 -1
pkgs/top-level/all-packages.nix
··· 6152 6152 6153 6153 gfbgraph = callPackage ../development/libraries/gfbgraph { }; 6154 6154 6155 - gfold = callPackage ../applications/version-management/git-and-tools/gfold { }; 6155 + gfold = callPackage ../applications/version-management/git-and-tools/gfold { 6156 + inherit (darwin.apple_sdk.frameworks) Security; 6157 + }; 6156 6158 6157 6159 ggobi = callPackage ../tools/graphics/ggobi { }; 6158 6160