-
-
Notifications
You must be signed in to change notification settings - Fork 12.6k
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
astrometry.net: init at 0.94 #225856
base: master
Are you sure you want to change the base?
astrometry.net: init at 0.94 #225856
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
@@ -0,0 +1,32 @@ | ||||||||||||||||||||||||||||||||
{ lib, stdenv, fetchFromGitHub, python3, cairo, netpbm, libpng, libjpeg, zlib, bzip2, swig, cfitsio, pkg-config, gsl }: | ||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||
stdenv.mkDerivation (FinalAttr: { | ||||||||||||||||||||||||||||||||
pname = "astrometry.net"; | ||||||||||||||||||||||||||||||||
version = "0.94"; | ||||||||||||||||||||||||||||||||
version_date = "2023-05-01"; | ||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||
src = fetchFromGitHub { | ||||||||||||||||||||||||||||||||
owner = "dstndstn"; | ||||||||||||||||||||||||||||||||
repo = FinalAttr.pname; | ||||||||||||||||||||||||||||||||
rev = FinalAttr.version; | ||||||||||||||||||||||||||||||||
Comment on lines
+4
to
+11
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
Shouldn't the package name be without .net? |
||||||||||||||||||||||||||||||||
hash = "sha256-/g9cqgcoxYQAmSdNrdAN/ZkQBu2xynOFYzfZnhKgKF8="; | ||||||||||||||||||||||||||||||||
}; | ||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||
nativeBuildInputs = [ pkg-config ]; | ||||||||||||||||||||||||||||||||
buildInputs = [ python3 cairo netpbm libpng libjpeg zlib bzip2 swig cfitsio gsl ]; | ||||||||||||||||||||||||||||||||
propagatedBuildInputs = with python3.pkgs; [ numpy ]; | ||||||||||||||||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please use a python wrapper instead of propagating a package |
||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||
preConfigure = '' | ||||||||||||||||||||||||||||||||
patchShebangs . | ||||||||||||||||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We should limit this to some directories or files |
||||||||||||||||||||||||||||||||
''; | ||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||
makeFlags = [ "INSTALL_DIR=$(out)" "AN_GIT_REVISION=${FinalAttr.version}" "AN_GIT_DATE=${FinalAttr.version_date}" ]; | ||||||||||||||||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
mocking the date is making updates a lot easier |
||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||
meta = with lib; { | ||||||||||||||||||||||||||||||||
description = "Automatic recognition of astronomical images"; | ||||||||||||||||||||||||||||||||
homepage = "https://astrometry.net/"; | ||||||||||||||||||||||||||||||||
license = licenses.gpl3Plus; | ||||||||||||||||||||||||||||||||
maintainers = [ maintainers.bzizou ]; | ||||||||||||||||||||||||||||||||
platforms = platforms.unix; | ||||||||||||||||||||||||||||||||
}; | ||||||||||||||||||||||||||||||||
}) |
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 the standard name