mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-10 15:04:44 +00:00
codesnap: init at 0.8.2
This commit is contained in:
parent
ad47c13dd4
commit
362f987f97
43
pkgs/by-name/co/codesnap/package.nix
Normal file
43
pkgs/by-name/co/codesnap/package.nix
Normal file
@ -0,0 +1,43 @@
|
||||
{
|
||||
lib,
|
||||
rustPlatform,
|
||||
fetchFromGitHub,
|
||||
versionCheckHook,
|
||||
nix-update-script,
|
||||
}:
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "codesnap";
|
||||
version = "0.8.2";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "mistricky";
|
||||
repo = "CodeSnap";
|
||||
tag = "v${version}";
|
||||
hash = "sha256-/eWqJ7CyHwYCOSoQHZ6047hWbVsp30JMXfeUeNci8xM=";
|
||||
};
|
||||
|
||||
cargoHash = "sha256-trthuKmI7V6HQHb+uu1RjZy4+qIP1anyqPdHwzEUuLs=";
|
||||
|
||||
cargoBuildFlags = [
|
||||
"-p"
|
||||
"codesnap-cli"
|
||||
];
|
||||
cargoTestFlags = cargoBuildFlags;
|
||||
|
||||
nativeInstallCheckInputs = [
|
||||
versionCheckHook
|
||||
];
|
||||
versionCheckProgramArg = [ "--version" ];
|
||||
doInstallCheck = true;
|
||||
|
||||
passthru.updateScript = nix-update-script { };
|
||||
|
||||
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";
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user