-
-
Notifications
You must be signed in to change notification settings - Fork 15.3k
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
nordlicht: init at 0.4.5 #70944
nordlicht: init at 0.4.5 #70944
Conversation
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.
you'll also want to make an entry in pkgs/top-level/all-packages.nix so that it's able to be built like other packages
@@ -0,0 +1,34 @@ | |||
{ stdenv, fetchFromGitHub, cmake, ffmpeg, popt, help2man }: | |||
with cmake; |
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.
shouldn't be necessary
with cmake; |
@@ -0,0 +1,34 @@ | |||
{ stdenv, fetchFromGitHub, cmake, ffmpeg, popt, help2man }: | |||
with cmake; | |||
stdenv.mkDerivation rec { |
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.
move indention of the entire file over to the beginning please
stdenv.mkDerivation rec { | |
stdenv.mkDerivation rec { |
{ stdenv, fetchFromGitHub, cmake, ffmpeg, popt, help2man }: | ||
with cmake; | ||
stdenv.mkDerivation rec { | ||
name = "nordlicht-${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.
name = "nordlicht-${version}"; | |
pname = "nordlicht"; |
with cmake; | ||
stdenv.mkDerivation rec { | ||
name = "nordlicht-${version}"; | ||
version = "0.4.5-git.7ad3f008.4b1751bd"; |
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.
please use an official release, if you can't use it for some reason (necessary patches), then please reference the date of the commit:
unstable-YYYY-MM-DD
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.
Looking at Github the revision you give is the 0.4.5 release.
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.
if that's the case, then it sould be rev = version
in the src attr set
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.
The tag starts with v: rev = "v${version}
stdenv.mkDerivation rec { | ||
name = "nordlicht-${version}"; | ||
version = "0.4.5-git.7ad3f008.4b1751bd"; | ||
license = "GNU GPL v2 or later"; |
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.
goes into meta section
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.
... and should be license = stdenv.lib.licenses.gpl2Plus
name = "nordlicht-${version}"; | ||
version = "0.4.5-git.7ad3f008.4b1751bd"; | ||
license = "GNU GPL v2 or later"; | ||
description = "creates colorful barcodes from video files"; |
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.
also meta section
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.
also:
description = "creates colorful barcodes from video files"; | |
description = "Tool for creating colorful barcodes from video files"; |
rev = "7ad3f008afe803037b332822028faed64b1751bd"; | ||
sha256 = "14657zfzvq0iki8sn6rq789bgjr7wvvid9y2clfy25bi0a1gvnix"; | ||
}; | ||
buildInputs = [ cmake ffmpeg popt help2man ]; |
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.
cmake should be in nativeBuildInputs (isn't needed at runtime)
buildInputs = [ cmake ffmpeg popt help2man ]; | |
nativeBuildInputs = [ cmake ]; | |
buildInputs = [ ffmpeg popt help2man ]; |
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.
Pretty sure help2man belongs to nativeBuildInputs too (only needed to generate man pages at build time)
sha256 = "14657zfzvq0iki8sn6rq789bgjr7wvvid9y2clfy25bi0a1gvnix"; | ||
}; | ||
buildInputs = [ cmake ffmpeg popt help2man ]; | ||
configurePhase = '' |
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.
most of this should be unnecesary if cmake is listed as a nativeBuildInput, try removing it first
done | ||
done | ||
''; | ||
installFlags = [ "DESTDIR=$(out)" "CMAKE_INSTAL_PREFIX=$(out)" ]; |
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.
these should be unnecessary to specify as well once cmake is a nativeBuildInput
src = fetchFromGitHub { | ||
owner = "nordlicht"; | ||
repo = "nordlicht"; | ||
rev = "7ad3f008afe803037b332822028faed64b1751bd"; |
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.
rev = "7ad3f008afe803037b332822028faed64b1751bd"; | |
rev = "v${version}"; |
I'm closing as OP seems not intent to respond to review requests. |
Motivation for this change
Because... why not? :-)
Build and manual test seems to work for me.
Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nix-review --run "nix-review wip"
./result/bin/
)nix path-info -S
before and after)Notify maintainers
cc @