33 lines
726 B
Nix
33 lines
726 B
Nix
{ config, lib, pkgs, stdenv, linuxcnc-base }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
enableParallelBuilding = true;
|
|
|
|
pname = "hal-cia402";
|
|
version = "e772757686";
|
|
name = "${pname}-${version}";
|
|
|
|
src = pkgs.fetchgit {
|
|
url = "https://git.dripco.eu/nic/hal-cia402.git";
|
|
rev = "e772757686a0fbee476b3d03c060e5cc9ee90e27";
|
|
sha256 = "qna8a1C/WXNudyRXxibTGai3D48nRWRyprlXZYM2rxg=";
|
|
};
|
|
|
|
nativeBuildInputs = with pkgs; [ ];
|
|
|
|
buildInputs = [ linuxcnc-base ];
|
|
|
|
installPhase = ''
|
|
halcompile --compile cia402.comp
|
|
|
|
mkdir -p $out/lib/linuxcnc/modules/
|
|
cp cia402.so $out/lib/linuxcnc/modules/
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "LinuxCNC CIA402 HAL component";
|
|
platforms = platforms.linux;
|
|
};
|
|
|
|
}
|