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

2014-12-08 Thread Marc Weber
What about reading the nixpkgs (the sections describing what a
derivation is) manual and or having a look at the nixpkgs repository
which should contain more than enough examples ?

Marc Weber
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


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

2014-12-07 Thread Anderson Torres
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 #includealtcoins-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@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev