File tree Expand file tree Collapse file tree 1 file changed +43
-0
lines changed
Expand file tree Collapse file tree 1 file changed +43
-0
lines changed Original file line number Diff line number Diff line change 1+ {
2+ lib ,
3+ rustPlatform ,
4+ fetchFromGitHub ,
5+ versionCheckHook ,
6+ nix-update-script ,
7+ } :
8+ rustPlatform . buildRustPackage rec {
9+ pname = "codesnap" ;
10+ version = "0.8.2" ;
11+
12+ src = fetchFromGitHub {
13+ owner = "mistricky" ;
14+ repo = "CodeSnap" ;
15+ tag = "v${ version } " ;
16+ hash = "sha256-/eWqJ7CyHwYCOSoQHZ6047hWbVsp30JMXfeUeNci8xM=" ;
17+ } ;
18+
19+ cargoHash = "sha256-trthuKmI7V6HQHb+uu1RjZy4+qIP1anyqPdHwzEUuLs=" ;
20+
21+ cargoBuildFlags = [
22+ "-p"
23+ "codesnap-cli"
24+ ] ;
25+ cargoTestFlags = cargoBuildFlags ;
26+
27+ nativeInstallCheckInputs = [
28+ versionCheckHook
29+ ] ;
30+ versionCheckProgramArg = [ "--version" ] ;
31+ doInstallCheck = true ;
32+
33+ passthru . updateScript = nix-update-script { } ;
34+
35+ meta = {
36+ description = "Command-line tool for generating beautiful code snippets" ;
37+ homepage = "https://github.com/mistricky/CodeSnap" ;
38+ changelog = "https://github.com/mistricky/CodeSnap/releases/tag/v${ version } " ;
39+ license = lib . licenses . mit ;
40+ maintainers = with lib . maintainers ; [ nartsiss ] ;
41+ mainProgram = "codesnap" ;
42+ } ;
43+ }
You can’t perform that action at this time.
0 commit comments