corn-cli: init at 0.10.1 (#509058)

This commit is contained in:
Pol Dellaiera
2026-04-12 17:42:10 +00:00
committed by GitHub
3 changed files with 77 additions and 0 deletions
@@ -2413,6 +2413,8 @@ let
jackmacwindows.craftos-pc = callPackage ./jackmacwindows.craftos-pc { };
jakestanger.corn = callPackage ./jakestanger.corn { };
james-yu.latex-workshop = callPackage ./james-yu.latex-workshop { };
jamesyang999.vscode-emacs-minimum = buildVscodeMarketplaceExtension {
@@ -0,0 +1,22 @@
{
vscode-utils,
lib,
}:
vscode-utils.buildVscodeMarketplaceExtension {
mktplcRef = {
name = "corn";
publisher = "JakeStanger";
version = "0.1.0";
hash = "sha256-6c9lxwJDVUuT3VKAbIohd0mRHFbfmfDgKfYJ+XET5hQ=";
};
meta = {
changelog = "https://marketplace.visualstudio.com/items/JakeStanger.corn/changelog";
description = "Visual Studio Code extension for Cornlang";
downloadPage = "https://marketplace.visualstudio.com/items?itemName=JakeStanger.corn";
homepage = "https://github.com/corn-config/corn-vscode";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ drupol ];
};
}
+53
View File
@@ -0,0 +1,53 @@
{
lib,
rustPlatform,
fetchFromGitHub,
pkg-config,
versionCheckHook,
}:
rustPlatform.buildRustPackage (finalAttrs: {
pname = "corn-cli";
version = "0.10.1";
__structuredAttrs = true;
src = fetchFromGitHub {
owner = "corn-config";
repo = "corn";
tag = "v${finalAttrs.version}";
hash = "sha256-TPGLF72fp1aX19kQgI/bYdzTIsP0M7gn1ZSUny10kMs=";
};
cargoHash = "sha256-4WDL1A29vQ9NrDbfA0nBZ7PcBz2zTmlOaxI6V4u4x5o=";
cargoBuildFlags = [
"--package"
"corn-cli"
];
nativeBuildInputs = [
pkg-config
];
doInstallCheck = true;
nativeInstallCheckInputs = [ versionCheckHook ];
preCheck = ''
export CORN_TEST=bar
'';
# Single failing test
checkFlags = [
"--skip=toml_complex"
];
meta = {
description = "CLI for Cornlang, a simple and pain-free configuration language";
homepage = "https://cornlang.dev/";
changelog = "https://github.com/corn-config/corn/blob/${finalAttrs.src.tag}/CHANGELOG.md";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ drupol ];
mainProgram = "corn-cli";
};
})