[Nix-dev] How can I write a library inside Nixpkgs? (for Bitcoin and friends...)

James Cook james.cook at utoronto.ca
Mon Dec 8 22:45:22 CET 2014


To address your question narrowly, something like this is already done:
https://github.com/NixOS/nixpkgs/pull/1375

James

On 7 December 2014 at 17:54, Anderson Torres <torres.anderson.85 at gmail.com>
wrote:

> Hello, Nixers!
>
> I want to make a small library to help create CryptoCoins (or Altcoins).
> Nowadays, there is a small bunch of altcoins in Nix. The most recent
> is Darkcoin, by myself :)
>
> I want to make something like "#include<altcoins-templates.nix>". In
> fact, these altcoins are built almost the same way:
>
> 1 - Define one or two generic functions (like "mkAutotoolsCoin,
> mkGitCoin, mkTarballCoin" etc.);
> 2 - Use the functions to write a builder for the coin.
>
> My idea is to put the generic functions in a same file, and the
> specific coins are described in separate files.
>
> I think my question is a bit newbie, but can someone help me here?
>
> Many thanks, and sorry my bad English :/
> _______________________________________________
> nix-dev mailing list
> nix-dev at lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.science.uu.nl/pipermail/nix-dev/attachments/20141208/07741a46/attachment-0001.html 


More information about the nix-dev mailing list