cursedgl: remove package

Not using it anymore.
This commit is contained in:
Gabriel Arazas 2023-07-15 08:17:53 +08:00
parent be66567fec
commit d20b49ca29
No known key found for this signature in database
GPG Key ID: ADE0C41DAB221FCC
3 changed files with 0 additions and 91 deletions

View File

@ -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;
};
}

View File

@ -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()

View File

@ -9,7 +9,6 @@ let
awesome-cli = callPackage ./awesome-cli { }; awesome-cli = callPackage ./awesome-cli { };
decker = callPackage ./decker { }; decker = callPackage ./decker { };
cosmic-launcher = callPackage ./cosmic-launcher { }; cosmic-launcher = callPackage ./cosmic-launcher { };
cursedgl = callPackage ./cursedgl { };
clidle = callPackage ./clidle.nix { }; clidle = callPackage ./clidle.nix { };
domterm = callPackage ./domterm { }; domterm = callPackage ./domterm { };
freerct = callPackage ./freerct.nix { }; freerct = callPackage ./freerct.nix { };