2021-01-15 15:45:37 +01:00
|
|
|
{ lib, stdenv, fetchFromGitHub }:
|
2018-07-04 13:28:07 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-11-30 01:51:11 +01:00
|
|
|
pname = "pps-tools";
|
|
|
|
version = "1.0.3";
|
2018-07-04 13:28:07 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "redlab-i";
|
2021-11-30 01:51:11 +01:00
|
|
|
repo = pname;
|
2018-07-04 13:28:07 +02:00
|
|
|
rev = "v${version}";
|
2021-11-30 01:51:11 +01:00
|
|
|
sha256 = "sha256-eLLFHrCgOQzOtVxlAsZ5X91KK+vZiKMGL7zbQFiIZtI=";
|
2018-07-04 13:28:07 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
outputs = [ "out" "dev" ];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
mkdir -p $dev/include
|
|
|
|
mkdir -p $out/{usr/bin,usr/include/sys}
|
|
|
|
make install DESTDIR=$out
|
|
|
|
mv $out/usr/bin/* $out/bin
|
|
|
|
mv $out/usr/include/* $dev/include/
|
|
|
|
rm -rf $out/usr/
|
|
|
|
'';
|
|
|
|
|
2021-11-30 01:51:11 +01:00
|
|
|
meta = with lib; {
|
2018-07-04 13:28:07 +02:00
|
|
|
description = "User-space tools for LinuxPPS";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "http://linuxpps.org/";
|
2018-07-04 13:28:07 +02:00
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ sorki ];
|
|
|
|
};
|
|
|
|
}
|