Skip to content

Commit

Permalink
Merge pull request #81116 from matthiasbeyer/add-swappy
Browse files Browse the repository at this point in the history
swappy: Init at 1.2.1
  • Loading branch information
marsam authored Sep 28, 2020
2 parents 064e082 + a04e96d commit 692f58d
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 0 deletions.
45 changes: 45 additions & 0 deletions pkgs/applications/misc/swappy/default.nix
Original file line number Diff line number Diff line change
@@ -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;
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2405,6 +2405,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 {};
Expand Down

0 comments on commit 692f58d

Please sign in to comment.