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
{ stdenv, lib, fetchFromGitHub
2
-
, qtbase, qttools, qmake, wrapQtAppsHook
3
}:
4
5
stdenv.mkDerivation rec {
6
pname = "librepcb";
7
-
version = "0.1.5";
8
9
src = fetchFromGitHub {
10
owner = pname;
11
repo = pname;
12
rev = version;
13
-
sha256 = "0ag8h3id2c1k9ds22rfrvyhf2vjhkv82xnrdrz4n1hnlr9566vcx";
14
fetchSubmodules = true;
15
};
16
17
-
nativeBuildInputs = [ qmake qttools wrapQtAppsHook ];
18
buildInputs = [ qtbase ];
19
-
20
-
qmakeFlags = ["-r"];
21
-
22
-
# the build system tries to use 'git' at build time to find the HEAD hash.
23
-
# that's a no-no, so replace it with a quick hack. NOTE: the # adds a comment
24
-
# at the end of the line to remove the git call.
25
-
postPatch = ''
26
-
substituteInPlace ./libs/librepcb/common/common.pro \
27
-
--replace 'GIT_COMMIT_SHA' 'GIT_COMMIT_SHA="\\\"${src.rev}\\\"" # '
28
-
'';
29
-
30
-
postInstall = ''
31
-
mkdir -p $out/share/librepcb/fontobene
32
-
cp share/librepcb/fontobene/newstroke.bene $out/share/librepcb/fontobene/
33
-
'';
34
35
meta = with lib; {
36
description = "A free EDA software to develop printed circuit boards";
···
1
{ stdenv, lib, fetchFromGitHub
2
+
, qtbase, qttools, cmake, wrapQtAppsHook
3
}:
4
5
stdenv.mkDerivation rec {
6
pname = "librepcb";
7
+
version = "0.1.6";
8
9
src = fetchFromGitHub {
10
owner = pname;
11
repo = pname;
12
rev = version;
13
+
sha256 = "0gzf3asdgdicpikb412134ybqnbbark948yrfhvba2w4i9cwbk2r";
14
fetchSubmodules = true;
15
};
16
17
+
nativeBuildInputs = [ cmake qttools wrapQtAppsHook ];
18
buildInputs = [ qtbase ];
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
19
20
meta = with lib; {
21
description = "A free EDA software to develop printed circuit boards";