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