Skip to content

Commit 089c395

Browse files
misc-gitology: init at unstable-2023-06-22 (#252010)
2 parents dc5b30f + 8190952 commit 089c395

File tree

1 file changed

+47
-0
lines changed

1 file changed

+47
-0
lines changed
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
{
2+
stdenv,
3+
lib,
4+
fetchFromGitHub,
5+
nix-update-script,
6+
perl,
7+
python3,
8+
}:
9+
stdenv.mkDerivation {
10+
pname = "misc-gitology";
11+
version = "0-unstable-2024-08-26";
12+
13+
src = fetchFromGitHub {
14+
owner = "da-x";
15+
repo = "misc-gitology";
16+
rev = "8f6b200ed5f4d39f86026cf050f325d5f5713950";
17+
hash = "sha256-6LoMJUOyBpP1HvVXNahEQlN1JKC9KflcOH9QWIi4M6s=";
18+
};
19+
20+
dontBuild = true;
21+
22+
buildInputs = [
23+
python3
24+
# For `git-find-blob`:
25+
perl
26+
];
27+
28+
installPhase = ''
29+
runHook preInstall
30+
mkdir -p $out/bin
31+
find . \
32+
-type f \
33+
-executable \
34+
-maxdepth 1 \
35+
-exec install --target-directory=$out/bin/ {} +
36+
runHook postInstall
37+
'';
38+
39+
meta = with lib; {
40+
description = "Assortment of scripts around Git";
41+
homepage = "https://github.com/da-x/misc-gitology";
42+
license = [ licenses.bsd2 ];
43+
maintainers = [ maintainers._9999years ];
44+
};
45+
46+
passthru.updateScript = nix-update-script { };
47+
}

0 commit comments

Comments
 (0)