aboutsummaryrefslogtreecommitdiff
path: root/infra/libkookie/nixpkgs/pkgs/applications/science/electronics/librepcb/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'infra/libkookie/nixpkgs/pkgs/applications/science/electronics/librepcb/default.nix')
-rw-r--r--infra/libkookie/nixpkgs/pkgs/applications/science/electronics/librepcb/default.nix15
1 files changed, 5 insertions, 10 deletions
diff --git a/infra/libkookie/nixpkgs/pkgs/applications/science/electronics/librepcb/default.nix b/infra/libkookie/nixpkgs/pkgs/applications/science/electronics/librepcb/default.nix
index 394a17876155..53a67cea40bc 100644
--- a/infra/libkookie/nixpkgs/pkgs/applications/science/electronics/librepcb/default.nix
+++ b/infra/libkookie/nixpkgs/pkgs/applications/science/electronics/librepcb/default.nix
@@ -18,30 +18,25 @@ stdenv.mkDerivation rec {
buildInputs = [ qtbase ];
qmakeFlags = ["-r"];
- enableParallelBuilding = true;
-
- postInstall = ''
- mkdir -p $out/share/librepcb/fontobene
- cp share/librepcb/fontobene/newstroke.bene $out/share/librepcb/fontobene/
- '';
# the build system tries to use 'git' at build time to find the HEAD hash.
# that's a no-no, so replace it with a quick hack. NOTE: the # adds a comment
# at the end of the line to remove the git call.
- patchPhase = ''
+ postPatch = ''
substituteInPlace ./libs/librepcb/common/common.pro \
--replace 'GIT_COMMIT_SHA' 'GIT_COMMIT_SHA="\\\"${src.rev}\\\"" # '
'';
- preFixup = ''
- wrapQtApp $out/bin/librepcb
+ postInstall = ''
+ mkdir -p $out/share/librepcb/fontobene
+ cp share/librepcb/fontobene/newstroke.bene $out/share/librepcb/fontobene/
'';
meta = with lib; {
description = "A free EDA software to develop printed circuit boards";
homepage = "https://librepcb.org/";
maintainers = with maintainers; [ luz thoughtpolice ];
- license = licenses.gpl3;
+ license = licenses.gpl3Plus;
platforms = platforms.linux;
};
}