From a04e96d9387a0c6e71f774f5d71bc279a206a0b9 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Wed, 26 Feb 2020 13:28:13 +0100 Subject: [PATCH] swappy: init at 1.2.1 Signed-off-by: Matthias Beyer --- pkgs/applications/misc/swappy/default.nix | 45 +++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 + 2 files changed, 47 insertions(+) create mode 100644 pkgs/applications/misc/swappy/default.nix diff --git a/pkgs/applications/misc/swappy/default.nix b/pkgs/applications/misc/swappy/default.nix new file mode 100644 index 000000000000..ddd9b434852d --- /dev/null +++ b/pkgs/applications/misc/swappy/default.nix @@ -0,0 +1,45 @@ +{ stdenv, fetchFromGitHub +, meson +, ninja +, wayland +, cairo +, pango +, gtk +, pkgconfig +, cmake +, scdoc +, libnotify +, gio-sharp +, glib +}: + +stdenv.mkDerivation rec { + name = "swappy-${version}"; + version = "1.2.1"; + + src = fetchFromGitHub { + owner = "jtheoof"; + repo = "swappy"; + rev = "v${version}"; + sha256 = "14ac2jmnak7avcz0jhqjm30vk7pv3gq5aq5rdyh84k8c613kkicf"; + }; + + nativeBuildInputs = [ glib meson ninja pkgconfig cmake scdoc ]; + + buildInputs = [ cairo pango gtk libnotify wayland glib ]; + + strictDeps = true; + + mesonFlags = [ + # TODO: https://github.com/NixOS/nixpkgs/issues/36468 + "-Dc_args=-I${glib.dev}/include/gio-unix-2.0" + ]; + + meta = with stdenv.lib; { + homepage = "https://github.com/jtheoof/swappy"; + description = "A Wayland native snapshot editing tool, inspired by Snappy on macOS "; + license = licenses.mit; + maintainers = [ maintainers.matthiasbeyer ]; + platforms = platforms.linux; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 52af1b91e4eb..39f59a691079 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -2303,6 +2303,8 @@ in bash-supergenpass = callPackage ../tools/security/bash-supergenpass { }; + swappy = callPackage ../applications/misc/swappy { gtk = gtk3; }; + sweep-visualizer = callPackage ../tools/misc/sweep-visualizer { }; syscall_limiter = callPackage ../os-specific/linux/syscall_limiter {};