2021-01-15 15:45:37 +01:00
|
|
|
{ lib, stdenv, fetchFromGitHub }:
|
2018-07-04 13:28:07 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
baseName = "pps-tools";
|
|
|
|
version = "1.0.2";
|
|
|
|
name = "${baseName}-${version}";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "redlab-i";
|
2019-09-09 01:38:31 +02:00
|
|
|
repo = baseName;
|
2018-07-04 13:28:07 +02:00
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "1yh9g0l59dkq4ci0wbb03qin3c3cizfngmn9jy1vwm5zm6axlxhf";
|
|
|
|
};
|
|
|
|
|
|
|
|
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-01-15 15:45:37 +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 ];
|
|
|
|
};
|
|
|
|
}
|