9 , libdrm # Not documented
16 stdenv.mkDerivation (finalAttrs: {
18 version = "unstable-2023-09-03";
21 name = "ctx-source"; # because of a dash starting the directory
22 url = "https://ctx.graphics/.git/";
23 rev = "1bac18c152eace3ca995b3c2b829a452085d46fb";
24 hash = "sha256-fOcQJ2XCeomdtAUmy0A+vU7Vt325OSwrb1+ccW+gZ38=";
28 # Many problematic things fixed - it should be upstreamed somehow:
29 # - babl changed its name in pkg-config files
30 # - arch detection made optional
32 # - remove inexistent reference to static/*/*
33 ./0001-fix-detections.diff
37 patchShebangs ./tools/gen_fs.sh
49 bash # for ctx-audioplayer
56 env.ARCH = stdenv.hostPlatform.parsed.cpu.arch;
58 configureScript = "./configure.sh";
59 configureFlags = lib.optional enableFb "--enable-fb";
60 configurePlatforms = [];
62 dontDisableStatic = true;
65 "PREFIX=${placeholder "out"}"
68 passthru.tests.test = nixosTests.terminal-emulators.ctx;
71 homepage = "https://ctx.graphics/";
72 description = "Vector graphics terminal";
74 ctx is an interactive 2D vector graphics, audio, text- canvas and
75 terminal, with escape sequences that enable a 2D vector drawing API using
76 a vector graphics protocol.
78 license = lib.licenses.gpl3Plus;
79 maintainers = with lib.maintainers; [ AndersonTorres ];
80 platforms = lib.platforms.unix;