nixpkgs/pkgs/by-name/c2/c2nim/package.nix
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00

19 lines
500 B
Nix

{ lib, buildNimPackage, fetchFromGitHub }:
buildNimPackage (finalAttrs: {
pname = "c2nim";
version = "0.9.19";
src = fetchFromGitHub {
owner = "nim-lang";
repo = finalAttrs.pname;
rev = finalAttrs.version;
hash = "sha256-E8sAhTFIWAnlfWyuvqK8h8g7Puf5ejLEqgLNb5N17os=";
};
meta = finalAttrs.src.meta // {
description = "Tool to translate Ansi C code to Nim";
mainProgram = "c2nim";
license = lib.licenses.mit;
maintainers = [ lib.maintainers.ehmry ];
};
})