about summary refs log tree commit diff
path: root/pkgs/development/libraries/libliftoff
diff options
context:
space:
mode:
authorMichael Weiss <dev.primeos@gmail.com>2021-07-01 14:55:04 +0200
committerMichael Weiss <dev.primeos@gmail.com>2021-07-01 14:55:30 +0200
commitf41dfe1989b226703954d53407e02edb3d0af564 (patch)
tree7b4405b39d3fe5d0d422bb2e01bb5e7d435ca3cc /pkgs/development/libraries/libliftoff
parent43b9d4d93af1355ab1438f7980a7a26ce549daf8 (diff)
libliftoff: init at 0.1.0
Diffstat (limited to 'pkgs/development/libraries/libliftoff')
-rw-r--r--pkgs/development/libraries/libliftoff/default.nix34
1 files changed, 34 insertions, 0 deletions
diff --git a/pkgs/development/libraries/libliftoff/default.nix b/pkgs/development/libraries/libliftoff/default.nix
new file mode 100644
index 0000000000000..759549dbb2890
--- /dev/null
+++ b/pkgs/development/libraries/libliftoff/default.nix
@@ -0,0 +1,34 @@
+{ lib, stdenv, fetchFromGitHub
+, meson, pkg-config, ninja
+, libdrm
+}:
+
+stdenv.mkDerivation rec {
+  pname = "libliftoff";
+  version = "0.1.0";
+
+  src = fetchFromGitHub {
+    owner = "emersion";
+    repo = pname;
+    rev = "v${version}";
+    sha256 = "1s53jsll3c7272bhmh4jr6k5m1nvn8i1ld704qmzsm852ilmgrla";
+  };
+
+  nativeBuildInputs = [ meson pkg-config ninja ];
+
+  buildInputs = [ libdrm ];
+
+  meta = with lib; {
+    description = "A lightweight KMS plane library";
+    longDescription = ''
+      libliftoff eases the use of KMS planes from userspace without standing in
+      your way. Users create "virtual planes" called layers, set KMS properties
+      on them, and libliftoff will pick planes for these layers if possible.
+    '';
+    inherit (src.meta) homepage;
+    changelog = "https://github.com/emersion/libliftoff/releases/tag/v${version}";
+    license     = licenses.mit;
+    platforms   = platforms.linux;
+    maintainers = with maintainers; [ primeos ];
+  };
+}