From d20b49ca29cb02c83869fefca88d6da87b069646 Mon Sep 17 00:00:00 2001 From: Gabriel Arazas Date: Sat, 15 Jul 2023 08:17:53 +0800 Subject: [PATCH] cursedgl: remove package Not using it anymore. --- pkgs/cursedgl/default.nix | 26 -------- pkgs/cursedgl/patches/update-cmakelist.patch | 64 -------------------- pkgs/default.nix | 1 - 3 files changed, 91 deletions(-) delete mode 100644 pkgs/cursedgl/default.nix delete mode 100644 pkgs/cursedgl/patches/update-cmakelist.patch diff --git a/pkgs/cursedgl/default.nix b/pkgs/cursedgl/default.nix deleted file mode 100644 index 80ebf22a..00000000 --- a/pkgs/cursedgl/default.nix +++ /dev/null @@ -1,26 +0,0 @@ -{ stdenv, lib, fetchFromGitHub, cmake, notcurses, ncurses }: - -stdenv.mkDerivation rec { - pname = "cursedgl"; - version = "0.4.0"; - - src = fetchFromGitHub { - owner = "saccharineboi"; - repo = "CursedGL"; - rev = "v${version}"; - sha256 = "sha256-h4gDF0yVbCEj4uE/QVg0WLmQuiRkFX1dHo0ULcYSVYg="; - }; - - nativeBuildInputs = [ cmake ]; - buildInputs = [ ncurses notcurses ]; - - patches = [ - ./patches/update-cmakelist.patch - ]; - - meta = with lib; { - description = "Notcurses-based software rasterizer"; - homepage = "https://github.com/saccharineboi/CursedGL"; - license = licenses.gpl3; - }; -} diff --git a/pkgs/cursedgl/patches/update-cmakelist.patch b/pkgs/cursedgl/patches/update-cmakelist.patch deleted file mode 100644 index 3f77762c..00000000 --- a/pkgs/cursedgl/patches/update-cmakelist.patch +++ /dev/null @@ -1,64 +0,0 @@ -diff --git a/CMakeLists.txt b/CMakeLists.txt -index 7910d72..d3a942d 100644 ---- a/CMakeLists.txt -+++ b/CMakeLists.txt -@@ -63,54 +63,14 @@ set(HEADER_FILES ${CMAKE_SOURCE_DIR}/include/common.h - include_directories ( - "${CMAKE_SOURCE_DIR}/include" - ) -+install(FILES ${HEADER_FILES} DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}) - - # build library - set(LIBS ${LIBS} notcurses-core m pthread) - add_library(${PROJECT_NAME} ${HEADER_FILES} ${SOURCE_FILES}) -+install(TARGETS ${PROJECT_NAME}) - - # build examples -- --# colored_cube --set(EXAMPLE colored_cube) --add_executable(${EXAMPLE} examples/colored_cube.c) --target_link_libraries(${EXAMPLE} PUBLIC ${LIBS} ${PROJECT_NAME}) -- --# interpolation --set(EXAMPLE interpolation) --add_executable(${EXAMPLE} examples/interpolation.c) --target_link_libraries(${EXAMPLE} PUBLIC ${LIBS} ${PROJECT_NAME}) -- --# hello_triangle --set(EXAMPLE hello_triangle) --add_executable(${EXAMPLE} examples/hello_triangle.c) --target_link_libraries(${EXAMPLE} PUBLIC ${LIBS} ${PROJECT_NAME}) -- --# teapot --set(EXAMPLE teapot) --add_executable(${EXAMPLE} examples/teapot.c) --target_link_libraries(${EXAMPLE} PUBLIC ${LIBS} ${PROJECT_NAME}) -- --# montecarlo --set(EXAMPLE montecarlo) --add_executable(${EXAMPLE} examples/montecarlo.c) --target_link_libraries(${EXAMPLE} PUBLIC ${LIBS} ${PROJECT_NAME}) -- --# hello_cube --set(EXAMPLE hello_cube) --add_executable(${EXAMPLE} examples/hello_cube.c) --target_link_libraries(${EXAMPLE} PUBLIC ${LIBS} ${PROJECT_NAME}) -- --# first_person_demo --set(EXAMPLE first_person_demo) --add_executable(${EXAMPLE} examples/first_person_demo.c) --target_link_libraries(${EXAMPLE} PUBLIC ${LIBS} ${PROJECT_NAME}) -- --# hello_lines --set(EXAMPLE hello_lines) --add_executable(${EXAMPLE} examples/hello_lines.c) --target_link_libraries(${EXAMPLE} PUBLIC ${LIBS} ${PROJECT_NAME}) -- --# usage --set(EXAMPLE usage) --add_executable(${EXAMPLE} examples/usage.c) --target_link_libraries(${EXAMPLE} PUBLIC ${LIBS} ${PROJECT_NAME}) -+foreach(EXAMPLE colored_cube interpolation hello_triangle teapot montecarlo hello_cube first_person_demo) -+install(FILES examples/${EXAMPLE}.c DESTINATION "${CMAKE_INSTALL_PREFIX}/share/${PROJECT_NAME}/examples") -+endforeach() diff --git a/pkgs/default.nix b/pkgs/default.nix index 477f5331..b1eba25e 100644 --- a/pkgs/default.nix +++ b/pkgs/default.nix @@ -9,7 +9,6 @@ let awesome-cli = callPackage ./awesome-cli { }; decker = callPackage ./decker { }; cosmic-launcher = callPackage ./cosmic-launcher { }; - cursedgl = callPackage ./cursedgl { }; clidle = callPackage ./clidle.nix { }; domterm = callPackage ./domterm { }; freerct = callPackage ./freerct.nix { };