nur-packages

My NUR packages
git clone git://git.sikmir.ru/nur-packages
Log | Files | Refs | README | LICENSE

default.nix (914B)


      1 { lib, stdenv, fetchFromGitHub, autoreconfHook, installShellFiles, libconfig }:
      2 
      3 stdenv.mkDerivation rec {
      4   pname = "socketcand";
      5   version = "0.6.1-unstable-2023-12-06";
      6 
      7   src = fetchFromGitHub {
      8     owner = "linux-can";
      9     repo = "socketcand";
     10     rev = "02ad0f5a9c9387b8ccfdef837068584b721eff05";
     11     hash = "sha256-Fsx5eIbiIYctfRcEU5iyG2hKcSV/7R7EyR6WlVFDTCk=";
     12   };
     13 
     14   nativeBuildInputs = [ autoreconfHook installShellFiles ];
     15 
     16   buildInputs = [ libconfig ];
     17 
     18   installPhase = ''
     19     runHook preInstall
     20     install -Dm755 socketcand socketcandcl -t $out/bin
     21     installManPage socketcand.1
     22     runHook postInstall
     23   '';
     24 
     25   meta = with lib; {
     26     description = "Server to access CAN sockets over ASCII protocol";
     27     inherit (src.meta) homepage;
     28     license = with licenses; [ gpl2Only bsd3 ];
     29     platforms = platforms.linux;
     30     maintainers = [ maintainers.sikmir ];
     31     skip.ci = stdenv.isDarwin;
     32   };
     33 }