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

pps-tools: init at v1.0.2, enable for chrony, gpsd, ntp #42889

Merged
merged 1 commit into from Jul 4, 2018

Conversation

sorki
Copy link
Member

@sorki sorki commented Jul 2, 2018

Motivation for this change

Enable PPS support

Things done

Packaged pps-tools, enabled in supported apps.

  • Tested using sandboxing (nix.useSandbox on NixOS, or option 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/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Fits CONTRIBUTING.md.


stdenv.mkDerivation rec {
baseName = "pps-tools";
version = "v1.0.2";
Copy link
Contributor

Choose a reason for hiding this comment

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

v is a part of rev, it is not a part of version.

meta = with stdenv.lib;{
description = "User-space tools for LinuxPPS";
homepage = http://linuxpps.org/;
license = licenses.gpl2;
Copy link
Contributor

Choose a reason for hiding this comment

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

The license is gpl2Plus.

Could you list yourself as the maintainer?

scons prefix="$out" leapfetch=no gpsd_user=${gpsdUser} gpsd_group=${gpsdGroup} \
systemd=yes udevdir="$out/lib/udev" \
python_libdir="$out/lib/${python2Packages.python.libPrefix}/site-packages"
export CFLAGS="-I${pps-tools.dev}/include"
Copy link
Contributor

Choose a reason for hiding this comment

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

Add pps-tools to buildInputs instead.

Copy link
Member Author

Choose a reason for hiding this comment

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

Doesn't seem to be detected in that case.

Copy link
Contributor

Choose a reason for hiding this comment

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

This is a common issue with scons-based projects. Please add this patch for gpsd then:

--- a/SConstruct
+++ b/SConstruct
@@ -226 +226 @@ import_env = (
-envs = {}
+envs = os.environ

@@ -21855,5 +21855,6 @@ with pkgs;
yrd = callPackage ../tools/networking/yrd { };

powershell = callPackage ../shells/powershell { };
pps-tools = callPackage ../development/libraries/pps-tools { };
Copy link
Contributor

Choose a reason for hiding this comment

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

This is primarily a set of Linux tools, please move it to pkgs/os-specific/linux/ and after powertop in all-packages.nix.

@sorki sorki force-pushed the pps-tools branch 2 times, most recently from 5279cbb to 40ec7a7 Compare July 2, 2018 22:50
@sorki
Copy link
Member Author

sorki commented Jul 3, 2018

Added scons patch, thanks for the hints.

@orivej-nixos orivej-nixos merged commit 91575dd into NixOS:master Jul 4, 2018
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

4 participants