nur-packages

My NUR packages
git clone git://git.sikmir.ru/nur-packages
Log | Files | Refs | README | LICENSE

package.nix (710B)


      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   src = fetchFromGitHub {
     13     owner = "riclolsen";
     14     repo = "qtester104";
     15     tag = "V${finalAttrs.version}";
     16     hash = "sha256-Gk4Cu1WA5L6KrplNlfNTX6p+dYTegAHpJmNsLpe6tC4=";
     17   };
     18 
     19   nativeBuildInputs = [
     20     qt6.qmake
     21     qt6.wrapQtAppsHook
     22   ];
     23 
     24   postInstall = ''
     25     install -Dm755 QTester104 -t $out/bin
     26   '';
     27 
     28   meta = {
     29     description = "Protocol tester for IEC60870-5-104 protocol";
     30     homepage = "https://github.com/riclolsen/qtester104";
     31     license = lib.licenses.gpl3Plus;
     32     maintainers = [ lib.maintainers.sikmir ];
     33     platforms = lib.platforms.unix;
     34   };
     35 })