summary refs log tree commit diff
path: root/pkgs/applications/science/electronics/qfsm/default.nix
blob: a50609e84a8c3ae3611f069581305488a61755f4 (plain) (blame)
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
{ stdenv, fetchurl, qt4, cmake, graphviz, pkg-config }:

stdenv.mkDerivation rec {
  name = "qfsm-0.54.0";

  src = fetchurl {
    url = "mirror://sourceforge/qfsm/${name}-Source.tar.bz2";
    sha256 = "0rl7bc5cr29ng67yij4akciyid9z7npal812ys4c3m229vjvflrb";
  };

  nativeBuildInputs = [ cmake pkg-config ];
  buildInputs = [ qt4 graphviz ];

  patches = [
    ./drop-hardcoded-prefix.patch
    ./gcc6-fixes.patch
  ];

  hardeningDisable = [ "format" ];

  meta = {
    description = "Graphical editor for finite state machines";
    homepage = "http://qfsm.sourceforge.net/";
    license = stdenv.lib.licenses.gpl3Plus;
    platforms = stdenv.lib.platforms.unix;
  };
}