Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

openboardview: init at 9.0.3 #179082

Merged
merged 2 commits into from Aug 15, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 6 additions & 0 deletions maintainers/maintainer-list.nix
Expand Up @@ -6520,6 +6520,12 @@
githubId = 66669;
name = "Jeff Zellner";
};
k3a = {
email = "git+nix@catmail.app";
name = "Mario Hros";
github = "k3a";
githubId = 966992;
};
k4leg = {
name = "k4leg";
email = "python.bogdan@gmail.com";
Expand Down
57 changes: 57 additions & 0 deletions pkgs/applications/science/electronics/openboardview/default.nix
@@ -0,0 +1,57 @@
{ stdenv
, lib
, fetchFromGitHub
, gitUpdater
, cmake
, pkg-config
, python3
, SDL2
, fontconfig
, gtk3
, wrapGAppsHook
}:

stdenv.mkDerivation rec {
pname = "openboardview";
version = "9.0.3";

src = fetchFromGitHub {
owner = "OpenBoardView";
repo = "OpenBoardView";
rev = version;
sha256 = "sha256-0vxWFNM9KQ5zs+VDDV3mVMfHZau4pgNxQ1HhH2vktCM=";
fetchSubmodules = true;
};

nativeBuildInputs = [ cmake pkg-config python3 wrapGAppsHook ];
buildInputs = [ SDL2 fontconfig gtk3 ];

postPatch = ''
substituteInPlace src/openboardview/CMakeLists.txt \
--replace "SDL2::SDL2main" ""
'';

cmakeFlags = [
"-DCMAKE_BUILD_TYPE=Release"
"-DGLAD_REPRODUCIBLE=On"
];

dontWrapGApps = true;
postFixup = ''
wrapGApp "$out/bin/${pname}" \
--prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath [ gtk3 ]}
'';

passthru.updateScript = gitUpdater {
inherit pname version;
ignoredVersions = ''.*\.90\..*'';
};

meta = with lib; {
description = "Linux SDL/ImGui edition software for viewing .brd files";
homepage = "https://github.com/OpenBoardView/OpenBoardView";
license = licenses.mit;
platforms = platforms.linux;
maintainers = with maintainers; [ k3a ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Expand Up @@ -33774,6 +33774,8 @@ with pkgs;

openroad = libsForQt5.callPackage ../applications/science/electronics/openroad { };

openboardview = callPackage ../applications/science/electronics/openboardview { };

pcb = callPackage ../applications/science/electronics/pcb { };

qucs = callPackage ../applications/science/electronics/qucs { };
Expand Down