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