Skip to content

Commit

Permalink
portmod: nixfmt + add mainProgram
Browse files Browse the repository at this point in the history
  • Loading branch information
marius851000 committed Nov 3, 2024
1 parent 518f48d commit 802da44
Showing 1 changed file with 24 additions and 19 deletions.
43 changes: 24 additions & 19 deletions pkgs/games/portmod/default.nix
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
{ lib
, bubblewrap
, cacert
, fetchFromGitLab
, git
, openmw
, jre
, perl
, python3Packages
, rustPlatform
, fontconfig
, freetype
, libX11
, harfbuzz
, fribidi
{
lib,
bubblewrap,
cacert,
fetchFromGitLab,
git,
openmw,
jre,
perl,
python3Packages,
rustPlatform,
fontconfig,
freetype,
libX11,
harfbuzz,
fribidi,
}:

let
Expand Down Expand Up @@ -96,9 +97,12 @@ python3Packages.buildPythonApplication {
distutils
];

nativeCheckInputs = with python3Packages; [
pytestCheckHook
] ++ bin-programs;
nativeCheckInputs =
with python3Packages;
[
pytestCheckHook
]
++ bin-programs;

preCheck = ''
cp ${portmod-rust}/lib/libportmod.so portmodlib/portmod.so
Expand Down Expand Up @@ -126,7 +130,7 @@ python3Packages.buildPythonApplication {
makeWrapperArgs+=("--prefix" "GIT_SSL_CAINFO" ":" "${cacert}/etc/ssl/certs/ca-bundle.crt" \
"--prefix" "PATH" ":" "${lib.makeBinPath bin-programs}" \
"--prefix" "LD_LIBRARY_PATH" ":" "${lib.makeLibraryPath extra-libs }" \
"--prefix" "LD_LIBRARY_PATH" ":" "${lib.makeLibraryPath extra-libs}" \
"--set-default" "OPENMW_VERSION_FILE" "${openmw}/share/games/openmw/resources/version")
'';

Expand All @@ -135,5 +139,6 @@ python3Packages.buildPythonApplication {
homepage = "https://gitlab.com/portmod/portmod";
license = licenses.gpl3Only;
maintainers = with maintainers; [ marius851000 ];
mainProgram = "portmod";
};
}

0 comments on commit 802da44

Please sign in to comment.