summary refs log tree commit diff
path: root/pkgs/applications/science/electronics/caneda
diff options
context:
space:
mode:
authorWill Dietz <w@wdtz.org>2017-10-03 15:27:57 -0500
committerWill Dietz <w@wdtz.org>2017-10-03 15:45:50 -0500
commit5bf645cde5ed853b5cef0ef9f612d6508cc58e26 (patch)
tree9289a20b464a2e07020a8f84598d796922d8f709 /pkgs/applications/science/electronics/caneda
parent05ab1e0e48896063810cf6658847a9e6a5a4c454 (diff)
downloadnixpkgs-5bf645cde5ed853b5cef0ef9f612d6508cc58e26.tar
nixpkgs-5bf645cde5ed853b5cef0ef9f612d6508cc58e26.tar.gz
nixpkgs-5bf645cde5ed853b5cef0ef9f612d6508cc58e26.tar.bz2
nixpkgs-5bf645cde5ed853b5cef0ef9f612d6508cc58e26.tar.lz
nixpkgs-5bf645cde5ed853b5cef0ef9f612d6508cc58e26.tar.xz
nixpkgs-5bf645cde5ed853b5cef0ef9f612d6508cc58e26.tar.zst
nixpkgs-5bf645cde5ed853b5cef0ef9f612d6508cc58e26.zip
caneda: git-2012-02-16 -> 0.3.1
cc #15558

Components are now part of the base install
(previously it seems no components were included),
which I believe mostly removes the need for the srcComponents bit.

Debian is only other distro packaging this according
to repology, and they don't include additional libraries
which further suggests they're at least non-essential :).

As for the Caneda/Libraries repository, copying these
into the "libraries" directory with similar files
does not cause them to be auto-registered anyway,
as far as I can tell the application has a static
list of components (in the source) and additional
components need to be added using the GUI
making bundling them a bit useless and misleading.

caneda also now requires qt5 and doesn't appear to require
either libxml2 or libxslt.
Diffstat (limited to 'pkgs/applications/science/electronics/caneda')
-rw-r--r--pkgs/applications/science/electronics/caneda/default.nix41
1 files changed, 12 insertions, 29 deletions
diff --git a/pkgs/applications/science/electronics/caneda/default.nix b/pkgs/applications/science/electronics/caneda/default.nix
index 2d6b12a5bb0..8f81a03044b 100644
--- a/pkgs/applications/science/electronics/caneda/default.nix
+++ b/pkgs/applications/science/electronics/caneda/default.nix
@@ -1,37 +1,20 @@
-{stdenv, fetchgit, qt4, cmake, libxml2, libxslt}:
-
-let
-
-  srcComponents = fetchgit {
-    url = git://caneda.git.sourceforge.net/gitroot/caneda/components;
-    rev = "34cd36b620e0dfc57ba2d2b6168734ea9a2cfa9a";
-    sha256 = "840f07921eecbf10e38e44e5c61c716295a16c98fbb75016d9a44e7dfee40e59";
-  };
-
-in
+{stdenv, fetchFromGitHub, cmake, qtbase, qttools, qtsvg, qwt }:
 
 stdenv.mkDerivation rec {
-  name = "caneda-git-2012-02-16";
-
-  src = fetchgit {
-    url = git://caneda.git.sourceforge.net/gitroot/caneda/caneda;
-    rev = "fff9e2f7988fe5d062548cafeda1e5cd660769d1";
-    sha256 = "dfbcac97f5a1b41ad9a63392394f37fb294cbf78c576673c9bc4a5370957b2c8";
+  name = "caneda-${version}";
+  version = "0.3.1";
+
+  src = fetchFromGitHub {
+    owner = "Caneda";
+    repo = "Caneda";
+    rev = version;
+    sha256 = "0hx8qid50j9xvg2kpbpqmbdyakgyjn6m373m1cvhp70v2gp1v8l2";
   };
 
-  hardeningDisable = [ "format" ];
-
-  buildInputs = [ cmake qt4 libxml2 libxslt ];
-
-  patches = [
-    ./gcc6.patch
-  ];
+  nativeBuildInputs = [ cmake ];
+  buildInputs = [ qtbase qttools qtsvg qwt ];
 
-  postInstall = ''
-    mkdir $out/share/caneda/components
-    cp -R ${srcComponents}/* $out/share/caneda/components
-    chmod u+w -R $out/share/caneda/components
-  '';
+  enableParallelBuilding = true;
 
   meta = {
     description = "Open source EDA software focused on easy of use and portability";