package.nix (918B)
1 { 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 fetchpatch, 6 qt5, 7 }: 8 9 stdenv.mkDerivation (finalAttrs: { 10 pname = "qiec104"; 11 version = "1.1"; 12 13 src = fetchFromGitHub { 14 owner = "MicroKoder"; 15 repo = "QIEC104"; 16 tag = "v${finalAttrs.version}"; 17 hash = "sha256-0iHcn3AMrqi0t/6JXYQsVFQaevwNgk27e4BjJvY1GtA="; 18 }; 19 20 patches = [ 21 # gcc support 22 (fetchpatch { 23 url = "https://github.com/MicroKoder/QIEC104/commit/804916a811e561e4a73b14d475a76c84bfb5b58d.patch"; 24 hash = "sha256-H1IJ8tBL5+4GO5WGMrDDwU65ylgA0QOhq9eZzRN6TxM="; 25 }) 26 ]; 27 28 nativeBuildInputs = [ 29 qt5.qmake 30 qt5.wrapQtAppsHook 31 ]; 32 33 postInstall = '' 34 install -Dm755 Q104 -t $out/bin 35 ''; 36 37 meta = { 38 description = "Small IEC104 client"; 39 homepage = "https://github.com/MicroKoder/QIEC104"; 40 license = lib.licenses.mit; 41 maintainers = [ lib.maintainers.sikmir ]; 42 platforms = lib.platforms.unix; 43 }; 44 })
