File tree Expand file tree Collapse file tree 1 file changed +44
-0
lines changed
pkgs/by-name/gi/gitnapped Expand file tree Collapse file tree 1 file changed +44
-0
lines changed Original file line number Diff line number Diff line change 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+ } )
You can’t perform that action at this time.
0 commit comments