Open anka-213 opened 4 years ago
That's a good point, maybe I should add an example hello world package.
Thanks! That sounds good.
I second this. If one wants to be opinionated, it would be good to describe why particular opinionated decisions about the template were made. What value do these decisions create for the user? Once that is understood, provide a step by step example of how to use this template to generate a package for say, an application that does not yet have a presence in nixpkgs
. I.E. "not my software, but I want to make a package for it and contribute it back to the community".
My particular use case is that I want to make a nixpkg
for FRR. How would this project make it easier to generate said package and how would one go about doing that?
Thanks much! Nix4evar!
This does seem like it's trying to be useful, but without more docs I have no idea where to put anything... like, say, the actual derivation build. And I can't find an example of anyone using this template on Github to learn from.
I'm going to get back to this in the next couple of weeks!
in case it helps as an example, i stumbled across this article https://rgoswami.me/posts/ccon-tut-nix/#project-local-pip which helped me get a Python 3.6 env with Numpy and Pandas up by changing shell.nix to this:
{ project ? import ./nix { }
}:
let
pythonEnv = project.pkgs.python36.withPackages (ps: with ps;[
numpy
pandas
]);
in project.pkgs.mkShell {
buildInputs = with builtins.attrValues project.devTools; [
pythonEnv
];
shellHook = ''
${project.ci.pre-commit-check.shellHook}
'';
}
Since the launch of https://devenv.sh I've introduced it for this template, what do you think? Does it make easier to get started?
I have trouble figuring out where to place my code in this template? Could you add a concrete example of building a package with this (or whatever this template is meant for)?