Skip to content

Commit

Permalink
shell.nix: add Git 2.20.1 derivation
Browse files Browse the repository at this point in the history
  • Loading branch information
zombiezen committed Feb 25, 2023
1 parent 1de37b0 commit 1c8d744
Showing 1 changed file with 43 additions and 14 deletions.
57 changes: 43 additions & 14 deletions shell.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,31 +3,60 @@
}:

let
defaultArgs = {
guiSupport = false;
sendEmailSupport = false;
svnSupport = false;
perlLibs = [pkgs.perlPackages.LWP pkgs.perlPackages.URI pkgs.perlPackages.TermReadKey];
smtpPerlLibs = [];
};
callPast = commit: relPath: args: pkgs.callPackage
((fetchTarball "https://github.com/NixOS/nixpkgs/archive/${commit}.tar.gz") + "/" + relPath)
(defaultArgs // args);
buildGit = nixpkgsCommit: relPath: args:
let
defaultArgs = {
guiSupport = false;
sendEmailSupport = false;
svnSupport = false;
withManual = false;
perlLibs = [pkgs.perlPackages.LWP pkgs.perlPackages.URI pkgs.perlPackages.TermReadKey];
smtpPerlLibs = [];
};
called = pkgs.callPackage
((fetchTarball "https://github.com/NixOS/nixpkgs/archive/${nixpkgsCommit}.tar.gz") + "/pkgs/applications/version-management/" + relPath)
(defaultArgs // args);
in
called.overrideAttrs (new: old: {
doCheck = false;
doInstallCheck = false;
});

gits = {
"2.17.1" = callPast
"2.17.1" = buildGit
"9db1f486e15107e417b63119ad5e1917ee126599"
"pkgs/applications/version-management/git-and-tools/git"
"git-and-tools/git"
{
stdenv = pkgs.stdenv // { inherit (pkgs) lib; };
python = pkgs.python3;
};
"2.25.1" = callPast
"2.20.1" = (buildGit
"fc917e5346eb7e8858a67dd683be2e43a165918a" # Git 2.21.0
"git-and-tools/git"
{
stdenv = pkgs.stdenv // { inherit (pkgs) lib; };
python = pkgs.python3;
}).overrideAttrs (new: old: {
name = "git-2.20.1";
src = pkgs.fetchurl {
url = "https://www.kernel.org/pub/software/scm/git/git-2.20.1.tar.xz";
hash = "sha256-nS6R4vqi6mG6CnAgHQI7NvVNhGMUWRoALGEOoquBw+k=";
};
});
"2.25.1" = buildGit
"b2a903a3e7ac9c038ed5f6a3ee744496622e0b65"
"pkgs/applications/version-management/git-and-tools/git"
"git-and-tools/git"
{
stdenv = pkgs.stdenv // { inherit (pkgs) lib; };
};
"2.27.0" = (buildGit
"98c44f565746165a556953cda769d23d732466f4"
"git-and-tools/git"
{
stdenv = pkgs.stdenv // { inherit (pkgs) lib; };
}).overrideAttrs (new: old: {
outputs = [ "out" ];
});
latest = pkgs.git;
};
in
Expand Down

0 comments on commit 1c8d744

Please sign in to comment.