From 3004b6f150b01af1e4f856097a67ade76c7c949f Mon Sep 17 00:00:00 2001 From: Falco Peijnenburg Date: Mon, 30 Oct 2017 18:37:20 +0100 Subject: [PATCH] fetchgitrevision: removed It doesn't work and was last referred to in 5553546c212152a9cea72e1398b088cda78c7b8b --- pkgs/build-support/fetchgitrevision/default.nix | 10 ---------- pkgs/top-level/all-packages.nix | 2 -- 2 files changed, 12 deletions(-) delete mode 100644 pkgs/build-support/fetchgitrevision/default.nix diff --git a/pkgs/build-support/fetchgitrevision/default.nix b/pkgs/build-support/fetchgitrevision/default.nix deleted file mode 100644 index e877648978d..00000000000 --- a/pkgs/build-support/fetchgitrevision/default.nix +++ /dev/null @@ -1,10 +0,0 @@ -runCommand: git: repository: branch: - import (runCommand "head-revision" - { buildInputs = [ git ]; - dummy = builtins.currentTime; - } - '' - rev=$(git ls-remote ${repository} | grep "refs/${branch}$" | awk '{ print $1 }') - echo "[ \"$rev\" ]" > $out - echo Latest revision in ${branch} is $rev - '') diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 04e35a02d81..2a96fbe6622 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -144,8 +144,6 @@ with pkgs; fetchgitPrivate = callPackage ../build-support/fetchgit/private.nix { }; - fetchgitrevision = import ../build-support/fetchgitrevision runCommand git; - fetchgitLocal = callPackage ../build-support/fetchgitlocal { }; fetchmtn = callPackage ../build-support/fetchmtn (config.fetchmtn or {});