mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
SHADERed: 1.4.1 -> 1.5.6 (#143915)
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
This commit is contained in:
parent
32dabf5bd5
commit
a1bbe1306e
2 changed files with 19 additions and 2 deletions
|
@ -11,14 +11,14 @@
|
|||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "SHADERed";
|
||||
version = "1.4.1";
|
||||
version = "1.5.6";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "dfranx";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
fetchSubmodules = true;
|
||||
sha256 = "ivOd4NJgx5KWSDnXSBQLMrdvBuOm8NRzcb2S4lvOrms=";
|
||||
sha256 = "0drf8wwx0gcmi22jq2yyjy7ppxynfq172wqakchscm313j248fjr";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
|
@ -34,6 +34,10 @@ stdenv.mkDerivation rec {
|
|||
sfml
|
||||
];
|
||||
|
||||
patches = [
|
||||
./install_path_fix.patch
|
||||
];
|
||||
|
||||
NIX_CFLAGS_COMPILE = "-Wno-error=format-security";
|
||||
|
||||
meta = with lib; {
|
||||
|
|
13
pkgs/development/tools/shadered/install_path_fix.patch
Normal file
13
pkgs/development/tools/shadered/install_path_fix.patch
Normal file
|
@ -0,0 +1,13 @@
|
|||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index 55eb05c..18f7fc3 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -234,7 +234,7 @@ endif()
|
||||
|
||||
set(BINARY_INST_DESTINATION "bin")
|
||||
set(RESOURCE_INST_DESTINATION "share/shadered")
|
||||
-install(PROGRAMS bin/SHADERed DESTINATION "${BINARY_INST_DESTINATION}" RENAME shadered)
|
||||
+install(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/bin/SHADERed DESTINATION "${BINARY_INST_DESTINATION}" RENAME shadered)
|
||||
install(DIRECTORY bin/data bin/templates bin/themes bin/plugins DESTINATION "${RESOURCE_INST_DESTINATION}")
|
||||
|
||||
if (UNIX AND NOT APPLE)
|
Loading…
Reference in a new issue