package.nix (779B)
1 { 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 cmake, 6 qt6, 7 }: 8 9 stdenv.mkDerivation (finalAttrs: { 10 pname = "qdia"; 11 version = "0.53"; 12 13 __structuredAttrs = true; 14 15 src = fetchFromGitHub { 16 owner = "sunderme"; 17 repo = "qdia"; 18 tag = finalAttrs.version; 19 hash = "sha256-iaobnEQm/viGAqHHlVf3LPV+MY16x1CFVQXLaVa/ddg="; 20 }; 21 22 nativeBuildInputs = [ 23 cmake 24 qt6.qttools 25 qt6.wrapQtAppsHook 26 ]; 27 28 buildInputs = [ qt6.qtbase ]; 29 30 postInstall = lib.optionalString stdenv.isDarwin '' 31 mv $out/{bin,Applications} 32 ''; 33 34 meta = { 35 description = "Simple schematic/diagram editor"; 36 homepage = "https://github.com/sunderme/qdia"; 37 license = lib.licenses.agpl3Only; 38 maintainers = [ lib.maintainers.sikmir ]; 39 platforms = lib.platforms.unix; 40 }; 41 })
