1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5}:
6
7stdenv.mkDerivation {
8 pname = "adslib";
9 version = "unstable-2020-08-28";
10
11 src = fetchFromGitHub {
12 owner = "stlehmann";
13 repo = "ADS";
14 rev = "c457b60d61d73325837ca50be2cc997c4792d481";
15 sha256 = "11r86xa8fr4z957hd0abn8x7182nz30a198d02y7gzpbhpi3z43k";
16 };
17
18 installPhase = ''
19 mkdir -p $out/lib
20 cp adslib.so $out/lib/adslib.so
21 '';
22
23 meta = with lib; {
24 description = "Beckhoff protocol to communicate with TwinCAT devices";
25 homepage = "https://github.com/stlehmann/ADS";
26 license = licenses.mit;
27 maintainers = with maintainers; [ jamiemagee ];
28 };
29}