From 3b8e97b4f721ef14846c43df4c82143977113156 Mon Sep 17 00:00:00 2001 From: Artturin Date: Sat, 2 Oct 2021 02:00:50 +0300 Subject: [PATCH] libdecor: init at 0.1.0 --- .../libraries/libdecor/default.nix | 44 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 + 2 files changed, 46 insertions(+) create mode 100644 pkgs/development/libraries/libdecor/default.nix diff --git a/pkgs/development/libraries/libdecor/default.nix b/pkgs/development/libraries/libdecor/default.nix new file mode 100644 index 000000000000..044f7c91b00c --- /dev/null +++ b/pkgs/development/libraries/libdecor/default.nix @@ -0,0 +1,44 @@ +{ stdenv +, lib +, fetchFromGitLab +, pkg-config +, meson +, ninja +, wayland +, wayland-protocols +, cairo +, dbus +, pango +, libxkbcommon +}: + +stdenv.mkDerivation rec { + pname = "libdecor"; + version = "0.1.0"; + + src = fetchFromGitLab { + domain = "gitlab.gnome.org"; + owner = "jadahl"; + repo = "libdecor"; + rev = "${version}"; + hash = "sha256:0qdg3r7k086wzszr969s0ljlqdvfqm31zpl8p5h397bw076zr6p2"; + }; + + nativeBuildInputs = [ meson ninja pkg-config ]; + buildInputs = [ + wayland + wayland-protocols + cairo + dbus + pango + libxkbcommon + ]; + + meta = with lib; { + homepage = "https://gitlab.gnome.org/jadahl/libdecor"; + description = "Client-side decorations library for Wayland clients"; + license = licenses.mit; + platforms = platforms.linux; + maintainers = with maintainers; [ artturin ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 0a4d06d73eb5..ae59a00082bc 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -16959,6 +16959,8 @@ with pkgs; libGL = null; }; + libdecor = callPackage ../development/libraries/libdecor { }; + libdigidoc = callPackage ../development/libraries/libdigidoc { inherit (darwin.apple_sdk.frameworks) Security; };