Skip to content

Commit

Permalink
obj2voxel: refactor, respect platform restriction found out by @dotla…
Browse files Browse the repository at this point in the history
  • Loading branch information
Isidor Zeuner committed Oct 6, 2023
1 parent 8b2c444 commit df03970
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions pkgs/by-name/ob/obj2voxel/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
, stdenv
, fetchFromGitHub
, fetchpatch
, static ? stdenv.hostPlatform.isStatic
, config
, cmake
}:

Expand Down Expand Up @@ -57,7 +55,7 @@ stdenv.mkDerivation (finalAttrs: {
'';

cmakeFlags = [
"-DBUILD_SHARED_LIBS=${if static then "OFF" else "ON"}"
"-DBUILD_SHARED_LIBS=${if stdenv.targetPlatform.isStatic then "OFF" else "ON"}"
];

strictDeps = true;
Expand All @@ -69,7 +67,7 @@ stdenv.mkDerivation (finalAttrs: {
mainProgram = "obj2voxel";
homepage = "https://github.com/Eisenwave/obj2voxel/blob/master/README.adoc";
license = licenses.mit;
platforms = platforms.all;
platforms = platforms.unix;
maintainers = [ maintainers.gm6k ];
};
})

0 comments on commit df03970

Please sign in to comment.