package.nix (829B)
1 { 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 qt6, 6 xcbuild, 7 }: 8 9 stdenv.mkDerivation (finalAttrs: { 10 pname = "qtester104"; 11 version = "2.7.2"; 12 13 __structuredAttrs = true; 14 15 src = fetchFromGitHub { 16 owner = "riclolsen"; 17 repo = "qtester104"; 18 tag = "V${finalAttrs.version}"; 19 hash = "sha256-Gk4Cu1WA5L6KrplNlfNTX6p+dYTegAHpJmNsLpe6tC4="; 20 }; 21 22 nativeBuildInputs = [ 23 qt6.qmake 24 qt6.wrapQtAppsHook 25 ] 26 ++ lib.optionals stdenv.hostPlatform.isDarwin [ 27 xcbuild # for plutil 28 ]; 29 30 postInstall = '' 31 install -Dm755 QTester104 -t $out/bin 32 ''; 33 34 meta = { 35 description = "Protocol tester for IEC60870-5-104 protocol"; 36 homepage = "https://github.com/riclolsen/qtester104"; 37 license = lib.licenses.gpl3Plus; 38 maintainers = [ lib.maintainers.sikmir ]; 39 platforms = lib.platforms.unix; 40 }; 41 })
