diff options
author | Alyssa Ross <hi@alyssa.is> | 2021-01-14 17:49:32 +0000 |
---|---|---|
committer | Alyssa Ross <hi@alyssa.is> | 2021-01-14 21:27:48 +0000 |
commit | 3893d6c6d76ca2b51ef3694a6c0f27dc8eb01ef5 (patch) | |
tree | 435e493f1aed99e7e97a2c12e65b1a2dcf35c96a /pkgs/applications | |
parent | 0f0c250967eda44217bb67d30f0b64882e2bc921 (diff) | |
download | nixpkgs-3893d6c6d76ca2b51ef3694a6c0f27dc8eb01ef5.tar nixpkgs-3893d6c6d76ca2b51ef3694a6c0f27dc8eb01ef5.tar.gz nixpkgs-3893d6c6d76ca2b51ef3694a6c0f27dc8eb01ef5.tar.bz2 nixpkgs-3893d6c6d76ca2b51ef3694a6c0f27dc8eb01ef5.tar.lz nixpkgs-3893d6c6d76ca2b51ef3694a6c0f27dc8eb01ef5.tar.xz nixpkgs-3893d6c6d76ca2b51ef3694a6c0f27dc8eb01ef5.tar.zst nixpkgs-3893d6c6d76ca2b51ef3694a6c0f27dc8eb01ef5.zip |
gitAndTools: move everything to the top level
The comment at the top of git-and-tools/default.nix said: /* All git-relates tools live here, in a separate attribute set so that users * can get a fast overview over what's available. but unfortunately that hasn't actually held up in practice. Git-related packages have continued to be added to the top level, or into gitAndTools, or sometimes both, basically at random, so having gitAndTools is just confusing. In fact, until I looked as part of working on getting rid of gitAndTools, one program (ydiff) was packaged twice independently, once in gitAndTools and once at the top level (I fixed this in 98c34901969). So I think it's for the best if we move away from gitAndTools, and just put all the packages it previously contained at the top level. I've implemented this here by just making gitAndTools an alias for the top level -- this saves having loads of lines in aliases.nix. This means that people can keep referring to gitAndTools in their configuration, but it won't be allowed to be used within Nixpkgs, and it won't be presented to new users by e.g. nix search. The only other change here that I'm aware of is that appendToName "minimal" is not longer called on the default git package, because doing that would have necessitated having a private gitBase variable like before. I think it makes more sense not to do that anyway, and reserve the "minimal" suffix only for gitMinimal.
Diffstat (limited to 'pkgs/applications')
4 files changed, 4 insertions, 274 deletions
diff --git a/pkgs/applications/editors/spacevim/default.nix b/pkgs/applications/editors/spacevim/default.nix index 02c6fd82d8c..2193d0ea5bb 100644 --- a/pkgs/applications/editors/spacevim/default.nix +++ b/pkgs/applications/editors/spacevim/default.nix @@ -1,4 +1,4 @@ -{ ripgrep, gitAndTools, fzf, makeWrapper, vim_configurable, vimPlugins, fetchFromGitHub, writeTextDir +{ ripgrep, git, fzf, makeWrapper, vim_configurable, vimPlugins, fetchFromGitHub, writeTextDir , lib, stdenv, runCommandNoCC, remarshal, formats, spacevim_config ? import ./init.nix }: with stdenv; let @@ -39,7 +39,7 @@ in mkDerivation rec { # trailing slash very important for SPACEVIMDIR makeWrapper "${vim-customized}/bin/vim" "$out/bin/spacevim" \ --add-flags "-u $out/SpaceVim/vimrc" --set SPACEVIMDIR "${spacevimdir}/" \ - --prefix PATH : ${lib.makeBinPath [ fzf gitAndTools.git ripgrep]} + --prefix PATH : ${lib.makeBinPath [ fzf git ripgrep]} ''; meta = with lib; { diff --git a/pkgs/applications/version-management/git-and-tools/bitbucket-server-cli/default.nix b/pkgs/applications/version-management/git-and-tools/bitbucket-server-cli/default.nix index 68edb8503bf..695250a5cc4 100644 --- a/pkgs/applications/version-management/git-and-tools/bitbucket-server-cli/default.nix +++ b/pkgs/applications/version-management/git-and-tools/bitbucket-server-cli/default.nix @@ -9,7 +9,7 @@ bundlerEnv rec { pname = "atlassian-stash"; - passthru.updateScript = bundlerUpdateScript "gitAndTools.bitbucket-server-cli"; + passthru.updateScript = bundlerUpdateScript "bitbucket-server-cli"; meta = with lib; { description = "A command line interface to interact with BitBucket Server (formerly Atlassian Stash)"; diff --git a/pkgs/applications/version-management/git-and-tools/default.nix b/pkgs/applications/version-management/git-and-tools/default.nix deleted file mode 100644 index 2b0efdf6904..00000000000 --- a/pkgs/applications/version-management/git-and-tools/default.nix +++ /dev/null @@ -1,270 +0,0 @@ -/* All git-relates tools live here, in a separate attribute set so that users - * can get a fast overview over what's available. - */ -args @ {config, lib, pkgs}: with args; with pkgs; -let - gitBase = callPackage ./git { - svnSupport = false; # for git-svn support - guiSupport = false; # requires tcl/tk - sendEmailSupport = false; # requires plenty of perl libraries - perlLibs = [perlPackages.LWP perlPackages.URI perlPackages.TermReadKey]; - smtpPerlLibs = [ - perlPackages.libnet perlPackages.NetSMTPSSL - perlPackages.IOSocketSSL perlPackages.NetSSLeay - perlPackages.AuthenSASL perlPackages.DigestHMAC - ]; - }; - - self = rec { - # Try to keep this generally alphabetized - - bfg-repo-cleaner = callPackage ./bfg-repo-cleaner { }; - - bitbucket-server-cli = callPackage ./bitbucket-server-cli { }; - - bump2version = pkgs.python37Packages.callPackage ./bump2version { }; - - darcs-to-git = callPackage ./darcs-to-git { }; - - delta = callPackage ./delta { - inherit (darwin.apple_sdk.frameworks) Security; - }; - - diff-so-fancy = callPackage ./diff-so-fancy { }; - - gh = callPackage ./gh { }; - - ghorg = callPackage ./ghorg { }; - - ghq = callPackage ./ghq { }; - - ghr = callPackage ./ghr { }; - - git = appendToName "minimal" gitBase; - - git-absorb = callPackage ./git-absorb { - inherit (darwin.apple_sdk.frameworks) Security; - }; - - git-annex = pkgs.haskellPackages.git-annex; - - git-annex-metadata-gui = libsForQt5.callPackage ./git-annex-metadata-gui { - inherit (python3Packages) buildPythonApplication pyqt5 git-annex-adapter; - }; - - git-annex-remote-b2 = callPackage ./git-annex-remote-b2 { }; - - git-annex-remote-dbx = callPackage ./git-annex-remote-dbx { - inherit (python3Packages) - buildPythonApplication - fetchPypi - dropbox - annexremote - humanfriendly; - }; - - git-annex-remote-rclone = callPackage ./git-annex-remote-rclone { }; - - git-annex-utils = callPackage ./git-annex-utils { }; - - git-brunch = pkgs.haskellPackages.git-brunch; - - git-appraise = callPackage ./git-appraise {}; - - git-bug = callPackage ./git-bug { }; - - # support for bugzilla - git-bz = callPackage ./git-bz { }; - - git-chglog = callPackage ./git-chglog { }; - - git-cinnabar = callPackage ./git-cinnabar { }; - - git-codeowners = callPackage ./git-codeowners { }; - - git-codereview = callPackage ./git-codereview { }; - - git-cola = callPackage ./git-cola { }; - - git-crypt = callPackage ./git-crypt { }; - - git-delete-merged-branches = callPackage ./git-delete-merged-branches { }; - - git-dit = callPackage ./git-dit { - inherit (darwin.apple_sdk.frameworks) CoreFoundation Security; - }; - - git-doc = lib.addMetaAttrs { - description = "Additional documentation for Git"; - longDescription = '' - This package contains additional documentation (HTML and text files) that - is referenced in the man pages of Git. - ''; - } gitFull.doc; - - git-extras = callPackage ./git-extras { }; - - git-fame = callPackage ./git-fame {}; - - git-fast-export = callPackage ./fast-export { mercurial = mercurial_4; }; - - git-filter-repo = callPackage ./git-filter-repo { - pythonPackages = python3Packages; - }; - - git-gone = callPackage ./git-gone { - inherit (darwin.apple_sdk.frameworks) Security; - }; - - git-hub = callPackage ./git-hub { }; - - git-ignore = callPackage ./git-ignore { }; - - git-imerge = python3Packages.callPackage ./git-imerge { }; - - git-interactive-rebase-tool = callPackage ./git-interactive-rebase-tool { - inherit (darwin.apple_sdk.frameworks) Security; - }; - - git-machete = python3Packages.callPackage ./git-machete { }; - - git-my = callPackage ./git-my { }; - - git-octopus = callPackage ./git-octopus { }; - - git-open = callPackage ./git-open { }; - - git-radar = callPackage ./git-radar { }; - - git-recent = callPackage ./git-recent { - util-linux = if stdenv.isLinux then util-linuxMinimal else util-linux; - }; - - git-remote-codecommit = python3Packages.callPackage ./git-remote-codecommit { }; - - git-remote-gcrypt = callPackage ./git-remote-gcrypt { }; - - git-remote-hg = callPackage ./git-remote-hg { }; - - git-reparent = callPackage ./git-reparent { }; - - git-secret = callPackage ./git-secret { }; - - git-secrets = callPackage ./git-secrets { }; - - git-standup = callPackage ./git-standup { }; - - git-stree = callPackage ./git-stree { }; - - git-subrepo = callPackage ./git-subrepo { }; - - git-subset = callPackage ./git-subset { - inherit (darwin.apple_sdk.frameworks) Security; - }; - - git-subtrac = callPackage ./git-subtrac { }; - - git-sync = callPackage ./git-sync { }; - - git-test = callPackage ./git-test { }; - - git-trim = callPackage ./git-trim { - inherit (darwin.apple_sdk.frameworks) Security; - }; - - git-when-merged = callPackage ./git-when-merged { }; - - git-workspace = callPackage ./git-workspace { - inherit (darwin.apple_sdk.frameworks) Security; - }; - - git2cl = callPackage ./git2cl { }; - - # The full-featured Git. - gitFull = gitBase.override { - svnSupport = true; - guiSupport = true; - sendEmailSupport = true; - withLibsecret = !stdenv.isDarwin; - }; - - # Git with SVN support, but without GUI. - gitSVN = lowPrio (appendToName "with-svn" (gitBase.override { - svnSupport = true; - })); - - gita = python3Packages.callPackage ./gita {}; - - gitbatch = callPackage ./gitbatch { }; - - gitflow = callPackage ./gitflow { }; - - gitin = callPackage ./gitin { }; - - gitstatus = callPackage ./gitstatus { }; - - gitui = callPackage ./gitui { - inherit (darwin.apple_sdk.frameworks) Security AppKit; - inherit (pkgs) openssl perl; - }; - - glab = callPackage ./glab { }; - - grv = callPackage ./grv { }; - - hub = callPackage ./hub { }; - - lab = callPackage ./lab { }; - - lefthook = callPackage ./lefthook { - # Please use empty attrset once upstream bugs have been fixed - # https://github.com/Arkweid/lefthook/issues/151 - buildGoModule = buildGo114Module; - }; - - legit = callPackage ./legit { }; - - pass-git-helper = python3Packages.callPackage ./pass-git-helper { }; - - pre-commit = pkgs.python3Packages.toPythonApplication pkgs.python3Packages.pre-commit; - - qgit = qt5.callPackage ./qgit { }; - - rs-git-fsmonitor = callPackage ./rs-git-fsmonitor { }; - - scmpuff = callPackage ./scmpuff { }; - - stgit = callPackage ./stgit { }; - - subgit = callPackage ./subgit { }; - - svn-all-fast-export = libsForQt5.callPackage ./svn-all-fast-export { }; - - svn2git = callPackage ./svn2git { - git = gitSVN; - }; - - thicket = callPackage ./thicket { }; - - tig = callPackage ./tig { }; - - top-git = callPackage ./topgit { }; - - transcrypt = callPackage ./transcrypt { }; - - git-vanity-hash = callPackage ./git-vanity-hash { }; - - ydiff = pkgs.python3.pkgs.toPythonApplication pkgs.python3.pkgs.ydiff; - -} // lib.optionalAttrs (config.allowAliases or true) (with self; { - # aliases - darcsToGit = darcs-to-git; - gitAnnex = git-annex; - gitBrunch = git-brunch; - gitFastExport = git-fast-export; - gitRemoteGcrypt = git-remote-gcrypt; - svn_all_fast_export = svn-all-fast-export; - topGit = top-git; -}); -in - self diff --git a/pkgs/applications/version-management/git-and-tools/git-fame/default.nix b/pkgs/applications/version-management/git-and-tools/git-fame/default.nix index 6084d496a56..216a1035c72 100644 --- a/pkgs/applications/version-management/git-and-tools/git-fame/default.nix +++ b/pkgs/applications/version-management/git-and-tools/git-fame/default.nix @@ -7,7 +7,7 @@ bundlerEnv { gemdir = ./.; - passthru.updateScript = bundlerUpdateScript "gitAndTools.git-fame"; + passthru.updateScript = bundlerUpdateScript "git-fame"; meta = with lib; { description = '' |