Skip to content

Commit 5a48e3c

Browse files
authored
codesnap: init at 0.8.2 (#364266)
2 parents bbb8998 + 362f987 commit 5a48e3c

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
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+
}

0 commit comments

Comments
 (0)