-
-
Notifications
You must be signed in to change notification settings - Fork 15.5k
lifelines: init at unstable-2019-05-07 #26537
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
Conversation
You can do More generally, having |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you. I've left a few notes for you to consider.
version = "2017-06-12-unstable"; | ||
name = "lifelines-${version}"; | ||
|
||
src = fetchgit { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
GitHub also provides autogenerated archives for arbitrary revs, which is cheaper than a checkout (and caches better). Use fetchFromGitHub
instead of fetchgit
to easily make use of this.
description = "Genealogy tool with ncurses interface"; | ||
homepage = "https://github.com/MarcNo/lifelines"; | ||
license = stdenv.lib.licenses.mit; | ||
maintainers = [ stdenv.lib.maintainers.disassembler ]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note that leaving platforms
unspecified means the package only builds for x86_64-linux
(before, it'd end up not being built at all ...).
Thanks for the review. I'll try that autotools thing. First autotools nixpkg I've worked on. As for the name, that semantic comes straight from the manual: https://nixos.org/nixpkgs/manual/#sec-package-naming. I'm contributing bug fixes and stuff upstream as well, so hopefully we can get a stable version tagged that builds on nixos soon. |
Note that the manual recommends adding My suggestion of simply disabling the error flag obviates the need for pointing to your own fork, if that's the only reason to not use upstream. |
My commit was just merged, so I switched to their repo. It's using fetchFromGithub now as well. I still can't build off a stable release because both previous stable releases (3.1.0 and 3.1.0) fail to compile on gcc because of conflicting function definitions (already fixed in upstream). |
One thing to consider is that if you intend to drop the |
f4f6b25
to
0cf0423
Compare
I'm hoping an upstream release will be soon and I can use that. |
@disassembler How about versioning it as "3.1.1.20181013" ? |
@disassembler any motivation to continue this PR? |
I actually wanted to try this program out anyways... so I updated the PR to be a more recent unstable version. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nix-review'ed
Motivation for this change
Adds lifelines command line genealogy tool. Using unstable because tag 3.1.1 will not build. Currently points at my repo, but will switch to upstream as soon as lifelines/lifelines#311 is merged.
Things done
(nix.useSandbox on NixOS,
or option
build-use-sandbox
innix.conf
on non-NixOS)
nix-shell -p nox --run "nox-review wip"
./result/bin/
)