blob: 135b0c014f6dff4e92fec9f70c52612a75198744 (
about) (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
{
stdenv,
lib,
fetchFromGitHub,
cmake,
bison,
flex,
dos2unix,
gperf,
adms,
withAdms ? false,
}:
stdenv.mkDerivation rec {
pname = "qucsator-rf";
version = "1.0.6";
src = fetchFromGitHub {
owner = "ra3xdh";
repo = "qucsator_rf";
rev = version;
hash = "sha256-c9deaY9eV1q+bx/k1tNpdVrJ8Q/L2G0lSQBYaOSfoDs=";
};
# Upstream forces NO_DEFAULT_PATH on APPLE
postPatch = ''
substituteInPlace CMakeLists.txt \
--replace-fail '"/usr/local/opt/bison/bin/"' '"${bison}/bin"'
'';
nativeBuildInputs = [
cmake
flex
bison
gperf
dos2unix
];
buildInputs = lib.optionals withAdms [ adms ];
cmakeFlags = [
"-DBISON_DIR=${bison}/bin"
(lib.cmakeBool "WITH_ADMS" withAdms)
];
meta = {
description = "RF circuit simulation kernel for Qucs-S";
homepage = "https://github.com/ra3xdh/qucsator_rf";
license = lib.licenses.gpl2Plus;
mainProgram = "qucsator_rf";
maintainers = with lib.maintainers; [ thomaslepoix ];
platforms = lib.platforms.unix;
};
}
|