1{
2 fetchFromGitHub,
3 lib,
4 stdenv,
5}:
6
7stdenv.mkDerivation {
8 pname = "git-cache";
9 version = "2018-06-18";
10
11 src = fetchFromGitHub {
12 owner = "Seb35";
13 repo = "git-cache";
14 rev = "354f661e40b358c5916c06957bd6b2c65426f452";
15 hash = "sha256-V7rQOy+s9Lzdc+RTA2QGPfyavw4De/qQ+tWrzYtO2qA=";
16 };
17
18 dontBuild = true;
19
20 installPhase = ''
21 install -Dm555 git-cache $out/bin/git-cache
22 '';
23
24 meta = with lib; {
25 homepage = "https://github.com/Seb35/git-cache";
26 license = licenses.wtfpl;
27 description = "Program to add and manage a system-wide or user-wide cache for remote git repositories";
28 mainProgram = "git-cache";
29 platforms = platforms.unix;
30 maintainers = with maintainers; [ maxhearnden ];
31 };
32}