nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
fork

Configure Feed

Select the types of activity you want to include in your feed.

at devShellTools-shell 64 lines 1.1 kB view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 meson, 6 ninja, 7 wayland, 8 cairo, 9 pango, 10 gtk3, 11 pkg-config, 12 scdoc, 13 libnotify, 14 glib, 15 wrapGAppsHook3, 16 hicolor-icon-theme, 17}: 18 19stdenv.mkDerivation rec { 20 pname = "swappy"; 21 version = "1.5.1"; 22 23 src = fetchFromGitHub { 24 owner = "jtheoof"; 25 repo = "swappy"; 26 rev = "v${version}"; 27 hash = "sha256-/XPvy98Il4i8cDl9vH6f0/AZmiSqseSXnen7HfMqCDo="; 28 }; 29 30 nativeBuildInputs = [ 31 glib 32 meson 33 ninja 34 pkg-config 35 scdoc 36 wrapGAppsHook3 37 ]; 38 39 buildInputs = [ 40 cairo 41 pango 42 gtk3 43 libnotify 44 wayland 45 glib 46 hicolor-icon-theme 47 ]; 48 49 strictDeps = true; 50 51 mesonFlags = [ 52 # TODO: https://github.com/NixOS/nixpkgs/issues/36468 53 "-Dc_args=-I${glib.dev}/include/gio-unix-2.0" 54 ]; 55 56 meta = with lib; { 57 description = "Wayland native snapshot editing tool, inspired by Snappy on macOS"; 58 homepage = "https://github.com/jtheoof/swappy"; 59 license = licenses.mit; 60 mainProgram = "swappy"; 61 maintainers = [ maintainers.matthiasbeyer ]; 62 platforms = platforms.linux; 63 }; 64}