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

dump1090: init at bff92c4 #30559

Merged
merged 1 commit into from Nov 5, 2017
Merged

dump1090: init at bff92c4 #30559

merged 1 commit into from Nov 5, 2017

Conversation

earldouglas
Copy link
Member

Motivation for this change

Allow nix users to easily install dump1090.

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option build-use-sandbox in nix.conf on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Fits CONTRIBUTING.md.

@earldouglas earldouglas changed the title picat: init at bff92c4 dump1090 init at bff92c4 Oct 19, 2017
@earldouglas
Copy link
Member Author

earldouglas commented Oct 19, 2017

This inits dump1090 at bff92c4. Note that dump1090 doesn't do versions or release numbers, so the git sha is used to identify the version.

meta = with stdenv.lib; {
description = "A simple Mode S decoder for RTLSDR devices";
homepage = https://github.com/MalcolmRobb/dump1090;
license = licenses.bsd3;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh my bad at the bottom of the readme it says it's released as bsd3. 🤷‍♀️

{ stdenv, fetchgit, gnumake, pkgconfig, libusb, rtl-sdr }:

stdenv.mkDerivation rec {
name = "dump1090";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should set a version like "dump1090-<version>", so in this case a date for when the commit was made should be the version: "dump1090-2014-11-01".

stdenv.mkDerivation rec {
name = "dump1090";

src = fetchgit {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fetchFromGitHub is faster.

homepage = https://github.com/MalcolmRobb/dump1090;
license = licenses.bsd3;
platforms = platforms.linux;
};
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A meta.maintainer should be set.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this the maintainer of dump1090 itself, or is this the maintainer of the dump1090 package derivation?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maintainer of the derivation/nix expression.

@earldouglas
Copy link
Member Author

@vyp: Thanks for the feedback. I have incorporated your recommendations.

@earldouglas earldouglas changed the title dump1090 init at bff92c4 dump1090: init at bff92c4 Oct 20, 2017
};

nativeBuildInputs = [ pkgconfig ];
buildInputs = [ gnumake libusb rtl-sdr ];
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I take it that the output captures a reference to make that it wants to execute at runtime? Otherwise it's better to rely on gnumake being part of the standard build env.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, good point. I have dropped gnumake and updated the PR.

@grahamc
Copy link
Member

grahamc commented Oct 26, 2017

@GrahamcOfBorg dump1090

Copy link

@GrahamcOfBorg GrahamcOfBorg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'public_html/gmap.html' -> '/nix/store/mx17apkwjw86khs8na99wvzhcn4i4aks-dump1090-2014-10-31/share/dump1090/gmap.html'
'public_html/options.js' -> '/nix/store/mx17apkwjw86khs8na99wvzhcn4i4aks-dump1090-2014-10-31/share/dump1090/options.js'
'public_html/planeObject.js' -> '/nix/store/mx17apkwjw86khs8na99wvzhcn4i4aks-dump1090-2014-10-31/share/dump1090/planeObject.js'
'public_html/script.js' -> '/nix/store/mx17apkwjw86khs8na99wvzhcn4i4aks-dump1090-2014-10-31/share/dump1090/script.js'
'public_html/style.css' -> '/nix/store/mx17apkwjw86khs8na99wvzhcn4i4aks-dump1090-2014-10-31/share/dump1090/style.css'
'public_html/coolclock' -> '/nix/store/mx17apkwjw86khs8na99wvzhcn4i4aks-dump1090-2014-10-31/share/dump1090/coolclock'
'public_html/coolclock/coolclock.js' -> '/nix/store/mx17apkwjw86khs8na99wvzhcn4i4aks-dump1090-2014-10-31/share/dump1090/coolclock/coolclock.js'
'public_html/coolclock/excanvas.js' -> '/nix/store/mx17apkwjw86khs8na99wvzhcn4i4aks-dump1090-2014-10-31/share/dump1090/coolclock/excanvas.js'
'public_html/coolclock/moreskins.js' -> '/nix/store/mx17apkwjw86khs8na99wvzhcn4i4aks-dump1090-2014-10-31/share/dump1090/coolclock/moreskins.js'
/nix/store/mx17apkwjw86khs8na99wvzhcn4i4aks-dump1090-2014-10-31

@orivej orivej merged commit 3350cd1 into NixOS:master Nov 5, 2017
@earldouglas earldouglas deleted the dump1090 branch November 7, 2017 15:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants