Skip to content

Commit 98a038d

Browse files
committed
gitnapped: init at 0.1.4
1 parent 53b2ae2 commit 98a038d

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
{
2+
lib,
3+
fetchFromGitHub,
4+
rustPlatform,
5+
makeWrapper,
6+
git,
7+
}:
8+
9+
let
10+
wrapperPath = lib.makeBinPath [
11+
git
12+
];
13+
in
14+
rustPlatform.buildRustPackage (finalAttrs: {
15+
pname = "gitnapped";
16+
version = "0.1.4";
17+
18+
src = fetchFromGitHub {
19+
owner = "Solexma";
20+
repo = "gitnapped";
21+
tag = "v${finalAttrs.version}";
22+
hash = "sha256-DkKei7PnQnF+0odsPwJJ/pwO/yqdZGRrJQcdIMQ/3uI=";
23+
};
24+
25+
cargoHash = "sha256-AIYDgjDYOwIi6KK5GzMF5UWYe9h7mGNONdwtlNygod4=";
26+
27+
nativeBuildInputs = [ makeWrapper ];
28+
29+
postInstall = ''
30+
wrapProgram $out/bin/gitnapped \
31+
--prefix PATH : ${wrapperPath}
32+
'';
33+
34+
meta = {
35+
description = "Git commit timeline analyzer";
36+
homepage = "https://site.gitnapped.dev";
37+
maintainers = with lib.maintainers; [
38+
nicknb
39+
];
40+
mainProgram = "gitnapped";
41+
license = lib.licenses.agpl3Only;
42+
platforms = lib.platforms.unix;
43+
};
44+
})

0 commit comments

Comments
 (0)