openboardview: 9.95.2 -> 10.0.0 (#539727)
This commit is contained in:
@@ -11,32 +11,26 @@
|
||||
fontconfig,
|
||||
gtk3,
|
||||
wrapGAppsHook3,
|
||||
python3Packages,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "openboardview";
|
||||
version = "9.95.2";
|
||||
version = "10.0.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "OpenBoardView";
|
||||
repo = "OpenBoardView";
|
||||
tag = version;
|
||||
hash = "sha256-B5VnuycRt8h7Cz3FTIbhcGcXuA60zPCz0FMvFENTwws=";
|
||||
tag = finalAttrs.version;
|
||||
hash = "sha256-rvCWzIbjEZOHh5diaeP4xVIRsMHqt4PGMuYOGfWvwhA=";
|
||||
fetchSubmodules = true;
|
||||
};
|
||||
|
||||
patches = [
|
||||
(fetchpatch {
|
||||
name = "fix-darwin-build.patch";
|
||||
url = "https://github.com/OpenBoardView/OpenBoardView/commit/a1de2e5de908afd83eceed757260f6425314af2e.patch?full_index=1";
|
||||
hash = "sha256-DK+K4F0+QGqaoWCyc8AvuIsaiTCqhAG6AsTNg2hegh0=";
|
||||
})
|
||||
];
|
||||
|
||||
nativeBuildInputs = [
|
||||
cmake
|
||||
pkg-config
|
||||
python3
|
||||
python3Packages.jinja2
|
||||
wrapGAppsHook3
|
||||
];
|
||||
buildInputs = [
|
||||
@@ -62,7 +56,7 @@ stdenv.mkDerivation rec {
|
||||
mv "$out/openboardview.app" "$out/Applications/OpenBoardView.app"
|
||||
''
|
||||
+ lib.optionalString (!stdenv.hostPlatform.isDarwin) ''
|
||||
wrapGApp "$out/bin/${pname}" \
|
||||
wrapGApp "$out/bin/${finalAttrs.pname}" \
|
||||
--prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath [ gtk3 ]}
|
||||
'';
|
||||
|
||||
@@ -74,8 +68,9 @@ stdenv.mkDerivation rec {
|
||||
description = "Linux SDL/ImGui edition software for viewing .brd files";
|
||||
mainProgram = "openboardview";
|
||||
homepage = "https://github.com/OpenBoardView/OpenBoardView";
|
||||
changelog = "https://github.com/OpenBoardView/OpenBoardView/releases/tag/${finalAttrs.version}";
|
||||
license = lib.licenses.mit;
|
||||
platforms = lib.platforms.unix;
|
||||
maintainers = with lib.maintainers; [ k3a ];
|
||||
};
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user