-
-
Notifications
You must be signed in to change notification settings - Fork 14.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
swappy: Init at 1.2.1 #81116
swappy: Init at 1.2.1 #81116
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
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; | ||||||||||||||
|
||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Or maybe there's a way to add There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Just use: mesonFlags = [
# TODO: https://github.com/NixOS/nixpkgs/issues/36468
"-Dc_args=-I${glib.dev}/include/gio-unix-2.0"
]; and you can remove the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. and you can remove |
||||||||||||||
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 "; | ||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. maybe remove the whitespace at the end |
||||||||||||||
license = licenses.mit; | ||||||||||||||
maintainers = [ maintainers.matthiasbeyer ]; | ||||||||||||||
platforms = platforms.linux; | ||||||||||||||
}; | ||||||||||||||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2303,6 +2303,8 @@ in | |
|
||
bash-supergenpass = callPackage ../tools/security/bash-supergenpass { }; | ||
|
||
swappy = callPackage ../applications/misc/swappy { gtk = gtk3; }; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. flameshot, a similar tool is in pkgs/tools/misc/flameshot. Not sure if it's important. |
||
|
||
sweep-visualizer = callPackage ../tools/misc/sweep-visualizer { }; | ||
|
||
syscall_limiter = callPackage ../os-specific/linux/syscall_limiter {}; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As for jtheoof/swappy#10 , try to add (untested):
Source: https://linux.die.net/man/3/clock_gettime +
nix-locate unistd.h
.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did not work:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be fixed now too.