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 <[email protected]> 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 > [email protected] > http://lists.science.uu.nl/mailman/listinfo/nix-dev >
_______________________________________________ nix-dev mailing list [email protected] http://lists.science.uu.nl/mailman/listinfo/nix-dev
