Files
linuxcnc-nix/packages/hal-cia402/default.nix
2023-09-27 18:55:57 +03:00

33 lines
716 B
Nix

{ config, lib, pkgs, stdenv, linuxcnc }:
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 ];
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;
};
}