lol

qelectrotech: 0.8.0 -> 0.9.0 (#384369)

authored by

h7x4 and committed by
GitHub
eab9aa8f 7cadc8fb

+18 -16
+18 -16
pkgs/applications/misc/qelectrotech/default.nix
··· 1 1 { 2 2 lib, 3 3 stdenv, 4 - mkDerivation, 5 - fetchzip, 4 + fetchFromGitHub, 6 5 installShellFiles, 7 6 pkg-config, 8 7 qmake, 9 8 qtbase, 10 9 kcoreaddons, 11 10 kwidgetsaddons, 11 + qtsvg, 12 + wrapQtAppsHook, 12 13 }: 13 14 14 - mkDerivation rec { 15 + stdenv.mkDerivation rec { 15 16 pname = "qelectrotech"; 16 - version = "0.8.0"; 17 + version = "0.9.0"; 17 18 18 - src = fetchzip { 19 - url = "https://git.tuxfamily.org/qet/qet.git/snapshot/qet-${version}.tar.gz"; 20 - sha256 = "sha256-op2vnMPF9bNnHGphWFB/HEeoThE6tX+9UvX8LWVwkzI="; 19 + src = fetchFromGitHub { 20 + owner = "qelectrotech"; 21 + repo = "qelectrotech-source-mirror"; 22 + tag = "0.9"; 23 + hash = "sha256-tj8q+mRVtdeDXbpiv4retdbNiIfvAFlutXn7BmjqFYU="; 21 24 }; 22 25 23 26 postPatch = '' 24 27 substituteInPlace qelectrotech.pro \ 25 - --replace 'GIT_COMMIT_SHA="\\\"$(shell git -C \""$$_PRO_FILE_PWD_"\" rev-parse --verify HEAD)\\\""' \ 28 + --replace-fail 'GIT_COMMIT_SHA="\\\"$(shell git -C \""$$_PRO_FILE_PWD_"\" rev-parse --verify HEAD)\\\""' \ 26 29 'GIT_COMMIT_SHA="\\\"${version}\\\""' \ 27 - --replace "COMPIL_PREFIX = '/usr/local/'" \ 30 + --replace-fail "COMPIL_PREFIX = '/usr/local/'" \ 28 31 "COMPIL_PREFIX = '$out/'" \ 29 - --replace "INSTALL_PREFIX = '/usr/local/'" \ 32 + --replace-fail "INSTALL_PREFIX = '/usr/local/'" \ 30 33 "INSTALL_PREFIX = '$out/'" 31 34 ''; 32 35 ··· 34 37 installShellFiles 35 38 pkg-config 36 39 qmake 40 + wrapQtAppsHook 37 41 ]; 38 42 39 43 buildInputs = [ 40 44 kcoreaddons 41 45 kwidgetsaddons 42 46 qtbase 47 + qtsvg 43 48 ]; 44 49 45 50 qmakeFlags = [ ··· 52 57 install -Dm555 qelectrotech $out/bin/qelectrotech 53 58 54 59 install -Dm444 -t $out/share/applications misc/qelectrotech.desktop 55 - install -Dm444 -t $out/share/applications misc/x-qet-titleblock.desktop 56 - install -Dm444 -t $out/share/applications misc/x-qet-element.desktop 57 - install -Dm444 -t $out/share/applications misc/x-qet-project.desktop 58 60 59 61 mkdir -p $out/share/qelectrotech 60 62 cp -r elements $out/share/qelectrotech ··· 68 70 runHook postInstall 69 71 ''; 70 72 71 - meta = with lib; { 73 + meta = { 72 74 description = "Free software to create electric diagrams"; 73 75 mainProgram = "qelectrotech"; 74 76 homepage = "https://qelectrotech.org/"; 75 - license = licenses.gpl2; 76 - maintainers = with maintainers; [ yvesf ]; 77 + license = lib.licenses.gpl2; 78 + maintainers = with lib.maintainers; [ yvesf ]; 77 79 platforms = qtbase.meta.platforms; 78 80 broken = stdenv.hostPlatform.isDarwin; 79 81 };