tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
librepcb: 0.1.5 -> 0.1.6
Luz
4 years ago
7a51cf9c
ecb6c351
+4
-19
1 changed file
expand all
collapse all
unified
split
pkgs
applications
science
electronics
librepcb
default.nix
+4
-19
pkgs/applications/science/electronics/librepcb/default.nix
···
1
1
{ stdenv, lib, fetchFromGitHub
2
2
-
, qtbase, qttools, qmake, wrapQtAppsHook
2
2
+
, qtbase, qttools, cmake, wrapQtAppsHook
3
3
}:
4
4
5
5
stdenv.mkDerivation rec {
6
6
pname = "librepcb";
7
7
-
version = "0.1.5";
7
7
+
version = "0.1.6";
8
8
9
9
src = fetchFromGitHub {
10
10
owner = pname;
11
11
repo = pname;
12
12
rev = version;
13
13
-
sha256 = "0ag8h3id2c1k9ds22rfrvyhf2vjhkv82xnrdrz4n1hnlr9566vcx";
13
13
+
sha256 = "0gzf3asdgdicpikb412134ybqnbbark948yrfhvba2w4i9cwbk2r";
14
14
fetchSubmodules = true;
15
15
};
16
16
17
17
-
nativeBuildInputs = [ qmake qttools wrapQtAppsHook ];
17
17
+
nativeBuildInputs = [ cmake qttools wrapQtAppsHook ];
18
18
buildInputs = [ qtbase ];
19
19
-
20
20
-
qmakeFlags = ["-r"];
21
21
-
22
22
-
# the build system tries to use 'git' at build time to find the HEAD hash.
23
23
-
# that's a no-no, so replace it with a quick hack. NOTE: the # adds a comment
24
24
-
# at the end of the line to remove the git call.
25
25
-
postPatch = ''
26
26
-
substituteInPlace ./libs/librepcb/common/common.pro \
27
27
-
--replace 'GIT_COMMIT_SHA' 'GIT_COMMIT_SHA="\\\"${src.rev}\\\"" # '
28
28
-
'';
29
29
-
30
30
-
postInstall = ''
31
31
-
mkdir -p $out/share/librepcb/fontobene
32
32
-
cp share/librepcb/fontobene/newstroke.bene $out/share/librepcb/fontobene/
33
33
-
'';
34
19
35
20
meta = with lib; {
36
21
description = "A free EDA software to develop printed circuit boards";