diff options
author | Niclas <33751841+buffet@users.noreply.github.com> | 2019-01-24 23:33:09 +0100 |
---|---|---|
committer | Vladyslav M <dywedir@pm.me> | 2019-01-25 00:33:09 +0200 |
commit | bae9fd59a945357f7712a63c0a09b72d4ed44e6e (patch) | |
tree | f32e4f4437fb16c21c7ac50fec99cb1928fdb2f9 /pkgs/tools/graphics | |
parent | 86c8036e15059a83e977482e926979ac2fd151ea (diff) |
grim: init at 1.0 (#54498)
Diffstat (limited to 'pkgs/tools/graphics')
-rw-r--r-- | pkgs/tools/graphics/grim/default.nix | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/pkgs/tools/graphics/grim/default.nix b/pkgs/tools/graphics/grim/default.nix new file mode 100644 index 0000000000000..fcb2b4ba3274d --- /dev/null +++ b/pkgs/tools/graphics/grim/default.nix @@ -0,0 +1,34 @@ +{ stdenv, fetchFromGitHub, cairo, libjpeg, meson, ninja, wayland, pkgconfig, wayland-protocols }: + +stdenv.mkDerivation rec { + name = "grim-${version}"; + version = "1.0"; + + src = fetchFromGitHub { + owner = "emersion"; + repo = "grim"; + rev = "v${version}"; + sha256 = "1mpmxkzssgzqh9z263y8vk40dayw32kah66sb8ja7yw22rm7f4zf"; + }; + + nativeBuildInputs = [ + meson + ninja + pkgconfig + ]; + + buildInputs = [ + cairo + libjpeg + wayland + wayland-protocols + ]; + + meta = with stdenv.lib; { + description = "Grab images from a Wayland compositor"; + homepage = https://github.com/emersion/grim; + license = licenses.mit; + platforms = platforms.linux; + maintainers = with maintainers; [ buffet ]; + }; +} |