Skip to content

Commit

Permalink
csfml: use substitutePatch instead of file patch
Browse files Browse the repository at this point in the history
Co-authored-by: Yohann Boniface <[email protected]>
  • Loading branch information
drawbu and Sigmanificient committed May 22, 2024
1 parent 78d1fcf commit 569fad3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 88 deletions.
6 changes: 5 additions & 1 deletion pkgs/by-name/cs/csfml/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,11 @@ stdenv.mkDerivation (finalAttrs: {
nativeBuildInputs = [ cmake ];
buildInputs = [ sfml ];
cmakeFlags = [ "-DCMAKE_MODULE_PATH=${sfml}/share/SFML/cmake/Modules/" ];
patches = [ ./pkgconfig.patch ];

prePatch = ''
substituteInPlace tools/pkg-config/* \
--replace-fail 'libdir=''${exec_prefix}/@CMAKE_INSTALL_LIBDIR@' "libdir=@CMAKE_INSTALL_FULL_LIBDIR@"
'';

meta = {
homepage = "https://www.sfml-dev.org/";
Expand Down
87 changes: 0 additions & 87 deletions pkgs/by-name/cs/csfml/pkgconfig.patch

This file was deleted.

0 comments on commit 569fad3

Please sign in to comment.