Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do I use this? #13

Open
anka-213 opened this issue Sep 5, 2020 · 7 comments
Open

How do I use this? #13

anka-213 opened this issue Sep 5, 2020 · 7 comments

Comments

@anka-213
Copy link

anka-213 commented Sep 5, 2020

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)?

@domenkozar
Copy link
Contributor

That's a good point, maybe I should add an example hello world package.

@anka-213
Copy link
Author

anka-213 commented Sep 7, 2020

Thanks! That sounds good.

@brotherdust
Copy link

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!

@duckpuppy
Copy link

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.

@domenkozar
Copy link
Contributor

I'm going to get back to this in the next couple of weeks!

@mjschock
Copy link

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}
  '';
}

@domenkozar
Copy link
Contributor

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants