summary refs log tree commit diff
diff options
context:
space:
mode:
authorAndersonTorres <torres.anderson.85@protonmail.com>2021-10-13 17:55:51 -0300
committerAndersonTorres <torres.anderson.85@protonmail.com>2021-10-13 17:55:51 -0300
commit7db1198c8e3fcf761411c816e1101af83d072c24 (patch)
treec601db6ef21d1b62728be0c190cb8a50aa9e5a9c
parentf1220d72a3a06b0fbac1999b5c8a097d1d10cc0f (diff)
downloadnixpkgs-7db1198c8e3fcf761411c816e1101af83d072c24.tar
nixpkgs-7db1198c8e3fcf761411c816e1101af83d072c24.tar.gz
nixpkgs-7db1198c8e3fcf761411c816e1101af83d072c24.tar.bz2
nixpkgs-7db1198c8e3fcf761411c816e1101af83d072c24.tar.lz
nixpkgs-7db1198c8e3fcf761411c816e1101af83d072c24.tar.xz
nixpkgs-7db1198c8e3fcf761411c816e1101af83d072c24.tar.zst
nixpkgs-7db1198c8e3fcf761411c816e1101af83d072c24.zip
ctx: init at 0.pre+date=2021-10-09
-rw-r--r--pkgs/applications/terminal-emulators/ctx/default.nix58
-rw-r--r--pkgs/top-level/all-packages.nix2
2 files changed, 60 insertions, 0 deletions
diff --git a/pkgs/applications/terminal-emulators/ctx/default.nix b/pkgs/applications/terminal-emulators/ctx/default.nix
new file mode 100644
index 00000000000..78c673d035a
--- /dev/null
+++ b/pkgs/applications/terminal-emulators/ctx/default.nix
@@ -0,0 +1,58 @@
+{ lib
+, stdenv
+, fetchgit
+, SDL2
+, alsa-lib
+, babl
+, curl
+, libdrm # Not documented
+, pkg-config
+, enableFb ? false
+}:
+
+stdenv.mkDerivation rec {
+  pname = "ctx";
+  version = "0.pre+date=2021-10-09";
+
+  src = fetchgit {
+    name = "ctx-source"; # because of a dash starting the directory
+    url = "https://ctx.graphics/.git/";
+    rev = "d11d0d1a719a3c77712528e2feed8c0878e0ea64";
+    sha256 = "sha256-Az3POgdvDOVaaRtzLlISDODhAKbefpGx5KgwO3dttqs=";
+  };
+
+  nativeBuildInputs = [
+    pkg-config
+  ];
+
+  buildInputs = [
+    SDL2
+    alsa-lib
+    babl
+    curl
+    libdrm
+  ];
+
+  configureScript = "./configure.sh";
+  configureFlags = lib.optional enableFb "--enable-fb";
+  dontAddPrefix = true;
+
+  hardeningDisable = [ "format" ];
+
+  installFlags = [
+    "PREFIX=${placeholder "out"}"
+  ];
+
+  meta = with lib; {
+    homepage = "https://ctx.graphics/";
+    description = "Vector graphics terminal";
+    longDescription= ''
+      ctx is an interactive 2D vector graphics, audio, text- canvas and
+      terminal, with escape sequences that enable a 2D vector drawing API using
+      a vector graphics protocol.
+    '';
+    license = licenses.gpl3Plus;
+    maintainers = with maintainers; [ AndersonTorres];
+    platforms = platforms.unix;
+  };
+}
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index f3197712d39..4ce1bb73baf 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -999,6 +999,8 @@ with pkgs;
     inherit (lxqt) qtermwidget;
   };
 
+  ctx = callPackage ../applications/terminal-emulators/ctx { };
+
   darktile = callPackage ../applications/terminal-emulators/darktile { };
 
   eterm = callPackage ../applications/terminal-emulators/eterm { };