lol
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

git-recent: cleanup, refactor (#446131)

authored by

Pol Dellaiera and committed by
GitHub
c233ca1d 0fe9557f

+51 -52
-48
pkgs/applications/version-management/git-recent/default.nix
··· 1 - { 2 - lib, 3 - stdenv, 4 - git, 5 - less, 6 - fetchFromGitHub, 7 - makeWrapper, 8 - # util-linuxMinimal is included because we need the column command 9 - util-linux, 10 - }: 11 - 12 - stdenv.mkDerivation rec { 13 - pname = "git-recent"; 14 - version = "2.0.4"; 15 - 16 - src = fetchFromGitHub { 17 - owner = "paulirish"; 18 - repo = "git-recent"; 19 - rev = "v${version}"; 20 - sha256 = "sha256-b6AWLEXCOza+lIHlvyYs3M6yHGr2StYXzl7OsA9gv/k="; 21 - }; 22 - 23 - nativeBuildInputs = [ makeWrapper ]; 24 - 25 - buildPhase = null; 26 - 27 - installPhase = '' 28 - mkdir -p $out/bin 29 - cp git-recent $out/bin 30 - wrapProgram $out/bin/git-recent \ 31 - --prefix PATH : "${ 32 - lib.makeBinPath [ 33 - git 34 - less 35 - util-linux 36 - ] 37 - }" 38 - ''; 39 - 40 - meta = with lib; { 41 - homepage = "https://github.com/paulirish/git-recent"; 42 - description = "See your latest local git branches, formatted real fancy"; 43 - license = licenses.mit; 44 - platforms = platforms.all; 45 - maintainers = [ maintainers.jlesquembre ]; 46 - mainProgram = "git-recent"; 47 - }; 48 - }
+51
pkgs/by-name/gi/git-recent/package.nix
··· 1 + { 2 + lib, 3 + stdenv, 4 + fetchFromGitHub, 5 + makeBinaryWrapper, 6 + gitMinimal, 7 + less, 8 + util-linuxMinimal, 9 + }: 10 + 11 + stdenv.mkDerivation (finalAttrs: { 12 + pname = "git-recent"; 13 + version = "2.0.4"; 14 + 15 + src = fetchFromGitHub { 16 + owner = "paulirish"; 17 + repo = "git-recent"; 18 + tag = "v${finalAttrs.version}"; 19 + hash = "sha256-b6AWLEXCOza+lIHlvyYs3M6yHGr2StYXzl7OsA9gv/k="; 20 + }; 21 + 22 + nativeBuildInputs = [ makeBinaryWrapper ]; 23 + 24 + dontBuild = true; 25 + 26 + installPhase = '' 27 + runHook preInstall 28 + 29 + install -D -m755 -t $out/bin git-recent 30 + 31 + wrapProgram $out/bin/git-recent \ 32 + --prefix PATH : "${ 33 + lib.makeBinPath [ 34 + gitMinimal 35 + less 36 + util-linuxMinimal 37 + ] 38 + }" 39 + 40 + runHook postInstall 41 + ''; 42 + 43 + meta = { 44 + homepage = "https://github.com/paulirish/git-recent"; 45 + description = "See your latest local git branches, formatted real fancy"; 46 + license = lib.licenses.mit; 47 + platforms = lib.platforms.all; 48 + maintainers = [ lib.maintainers.jlesquembre ]; 49 + mainProgram = "git-recent"; 50 + }; 51 + })
-4
pkgs/top-level/all-packages.nix
··· 1264 1264 1265 1265 git-credential-manager = callPackage ../applications/version-management/git-credential-manager { }; 1266 1266 1267 - git-recent = callPackage ../applications/version-management/git-recent { 1268 - util-linux = if stdenv.hostPlatform.isLinux then util-linuxMinimal else util-linux; 1269 - }; 1270 - 1271 1267 gitRepo = git-repo; 1272 1268 1273 1269 gittyup = libsForQt5.callPackage ../applications/version-management/gittyup { };