summaryrefslogtreecommitdiffstats
path: root/pkgs/by-name/ca/caneda/package.nix
blob: 88e299b70065ff516ce850135425d3da43f40abb (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
{
  stdenv,
  lib,
  fetchFromGitHub,
  fetchpatch,
  cmake,
  libsForQt5,
}:

stdenv.mkDerivation (finalAttrs: {
  pname = "caneda";
  version = "0.4.0";

  src = fetchFromGitHub {
    owner = "Caneda";
    repo = "Caneda";
    rev = finalAttrs.version;
    sha256 = "sha256-oE0cdOwufc7CHEFr3YU8stjg1hBGs4bemhXpNTCTpDQ=";
  };

  patches = [
    (fetchpatch {
      url = "https://sources.debian.org/data/main/c/caneda/0.4.0-2/debian/patches/fix_cmake_minimum_version.patch";
      hash = "sha256-MRkCA0GWcI6yEo4Ej+F67k0iNG1JHeLNhH0Rbz1QWoA=";
    })
  ];

  nativeBuildInputs = [
    cmake
    libsForQt5.wrapQtAppsHook
  ];

  buildInputs = [
    libsForQt5.qtbase
    libsForQt5.qttools
    libsForQt5.qtsvg
    libsForQt5.qwt6_1
  ];

  meta = {
    description = "Open source EDA software focused on easy of use and portability";
    changelog = "https://github.com/Caneda/Caneda/releases/tag/${finalAttrs.version}";
    mainProgram = "caneda";
    homepage = "http://caneda.org";
    license = lib.licenses.gpl2Plus;
    maintainers = with lib.maintainers; [ magicquark ];
    platforms = with lib.platforms; linux;
  };
})