nixpkgs-suyu/pkgs/os-specific/linux/pps-tools/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

34 lines
775 B
Nix
Raw Normal View History

2021-01-15 15:45:37 +01:00
{ lib, stdenv, fetchFromGitHub }:
stdenv.mkDerivation rec {
2021-11-30 01:51:11 +01:00
pname = "pps-tools";
version = "1.0.3";
src = fetchFromGitHub {
owner = "redlab-i";
2021-11-30 01:51:11 +01:00
repo = pname;
rev = "v${version}";
2021-11-30 01:51:11 +01:00
sha256 = "sha256-eLLFHrCgOQzOtVxlAsZ5X91KK+vZiKMGL7zbQFiIZtI=";
};
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; {
description = "User-space tools for LinuxPPS";
homepage = "http://linuxpps.org/";
license = licenses.gpl2Plus;
platforms = platforms.linux;
maintainers = with maintainers; [ sorki ];
};
}