horizon-eda: fix build (#358910)

This commit is contained in:
Weijia Wang 2024-11-27 22:11:51 +01:00 committed by GitHub
commit b020b8ecfd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 48 additions and 30 deletions

View File

@ -1,21 +1,22 @@
{ lib
, cmake
, cppzmq
, curl
, fetchFromGitHub
, glm
, gtkmm3
, libarchive
, libepoxy
, libgit2
, librsvg
, libuuid
, meson
, ninja
, opencascade-occt_7_6
, pkg-config
, podofo
, sqlite
{
lib,
cmake,
cppzmq,
curl,
fetchFromGitHub,
glm,
gtkmm3,
libarchive,
libepoxy,
libgit2,
librsvg,
libuuid,
meson,
ninja,
opencascade-occt_7_6,
pkg-config,
podofo,
sqlite,
}:
let
opencascade-occt = opencascade-occt_7_6;
@ -54,13 +55,22 @@ rec {
sqlite
];
env = {
NIX_CFLAGS_COMPILE = toString [
"-fpermissive"
];
};
CASROOT = opencascade-occt;
meta = with lib; {
meta = {
description = "Free EDA software to develop printed circuit boards";
homepage = "https://horizon-eda.org";
maintainers = with maintainers; [ guserav jue89 ];
license = licenses.gpl3Plus;
platforms = platforms.linux;
maintainers = with lib.maintainers; [
guserav
jue89
];
license = lib.licenses.gpl3Plus;
platforms = lib.platforms.linux;
};
}

View File

@ -1,17 +1,25 @@
{ stdenv
, boost
, callPackage
, coreutils
, libspnav
, python3
, wrapGAppsHook3
{
stdenv,
boost,
callPackage,
coreutils,
libspnav,
python3,
wrapGAppsHook3,
}:
let
base = callPackage ./base.nix { };
in
stdenv.mkDerivation rec {
inherit (base) pname version src meta CASROOT;
inherit (base)
pname
version
src
meta
CASROOT
env
;
# provide base for python module
passthru = {