Skip to content

Commit

Permalink
codesnap: init at 0.8.2
Browse files Browse the repository at this point in the history
  • Loading branch information
nartsisss committed Dec 11, 2024
1 parent ad47c13 commit 5ac5a0d
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions pkgs/by-name/co/codesnap/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
lib,
rustPlatform,
fetchFromGitHub,
}:
rustPlatform.buildRustPackage rec {
pname = "codesnap";
version = "0.8.2";

src = fetchFromGitHub {
owner = "mistricky";
repo = "CodeSnap";
rev = "refs/tags/v${version}";
hash = "sha256-/eWqJ7CyHwYCOSoQHZ6047hWbVsp30JMXfeUeNci8xM=";
};

cargoHash = "sha256-trthuKmI7V6HQHb+uu1RjZy4+qIP1anyqPdHwzEUuLs=";

cargoBuildFlags = [
"-p"
"codesnap-cli"
];
cargoTestFlags = cargoBuildFlags;

meta = {
description = "Command-line tool for generating beautiful code snippets";
homepage = "https://github.com/mistricky/CodeSnap";
changelog = "https://github.com/mistricky/CodeSnap/releases/tag/v${version}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ nartsiss ];
mainProgram = "codesnap";
};
}

0 comments on commit 5ac5a0d

Please sign in to comment.