Fix cia402

This commit is contained in:
2023-09-27 18:54:21 +03:00
parent 6650d64114
commit b2a8cf8177

View File

@@ -1,7 +1,7 @@
{ config, lib, pkgs, stdenv, linuxcnc }: { config, lib, pkgs, stdenv, linuxcnc }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
enableParalellBuilding = true; enableParallelBuilding = true;
pname = "hal-cia402"; pname = "hal-cia402";
version = "e772757686"; version = "e772757686";
@@ -10,7 +10,7 @@ stdenv.mkDerivation rec {
src = pkgs.fetchgit { src = pkgs.fetchgit {
url = "https://git.dripco.eu/nic/hal-cia402.git"; url = "https://git.dripco.eu/nic/hal-cia402.git";
rev = "e772757686a0fbee476b3d03c060e5cc9ee90e27"; rev = "e772757686a0fbee476b3d03c060e5cc9ee90e27";
sha256 = "SjFkcNl/4AlsMeIw5Hg9Kp5mIIV9KFUYodXV6lAi3/A="; sha256 = "qna8a1C/WXNudyRXxibTGai3D48nRWRyprlXZYM2rxg=";
}; };
nativeBuildInputs = with pkgs; [ ]; nativeBuildInputs = with pkgs; [ ];
@@ -19,6 +19,13 @@ stdenv.mkDerivation rec {
#installFlags = [ "DESTDIR=${placeholder "out"}" ]; #installFlags = [ "DESTDIR=${placeholder "out"}" ];
installPhase = ''
halcompile --compile cia402.comp
mkdir -p $out/lib/linuxcnc/modules/
cp cia402.so $out/lib/linuxcnc/modules/
'';
meta = with lib; { meta = with lib; {
description = "LinuxCNC CIA402 HAL component"; description = "LinuxCNC CIA402 HAL component";
platforms = platforms.linux; platforms = platforms.linux;