mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-18 03:34:58 +00:00
ff1a94e523
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.
19 lines
500 B
Nix
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 ];
|
|
};
|
|
})
|