Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: cb9840f48559
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 96664094e996
Choose a head ref
  • 2 commits
  • 2 files changed
  • 2 contributors

Commits on Jun 26, 2019

  1. linuxptp: init at 2.0

    markuskowa committed Jun 26, 2019
    Copy the full SHA
    06ffd2b View commit details

Commits on Jun 28, 2019

  1. Merge pull request #63803 from markuskowa/add-ptp

    linuxptp: init at 2.0
    markuskowa authored Jun 28, 2019
    Copy the full SHA
    9666409 View commit details
Showing with 35 additions and 0 deletions.
  1. +33 −0 pkgs/os-specific/linux/linuxptp/default.nix
  2. +2 −0 pkgs/top-level/all-packages.nix
33 changes: 33 additions & 0 deletions pkgs/os-specific/linux/linuxptp/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{ stdenv, fetchurl, linuxHeaders } :


stdenv.mkDerivation rec {
pname = "linuxptp";
version = "2.0";

src = fetchurl {
url = "mirror://sourceforge/linuxptp/${pname}-${version}.tgz";
sha256 = "0zcw8nllla06451r7bfsa31q4z8jj56j67i07l1azm473r0dj90a";
};

postPatch = ''
substituteInPlace incdefs.sh --replace \
'/usr/include/linux/' "${linuxHeaders}/include/linux/"
'';

makeFlags = [ "prefix=" ];

preInstall = ''
export DESTDIR=$out
'';

enableParallelBuilding = true;

meta = with stdenv.lib; {
description = "Implementation of the Precision Time Protocol (PTP) according to IEEE standard 1588 for Linux";
homepage = "http://linuxptp.sourceforge.net/";
maintainers = [ maintainers.markuskowa ];
license = licenses.gpl2;
platforms = platforms.linux;
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
@@ -1669,6 +1669,8 @@ in

link-grammar = callPackage ../tools/text/link-grammar { };

linuxptp = callPackage ../os-specific/linux/linuxptp { };

loadwatch = callPackage ../tools/system/loadwatch { };

loccount = callPackage ../development/tools/misc/loccount { };