blob: 5bd8eac5eef09abf3ab9eb436660eb4601537ec5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
self: super:
super.flameshot.overrideAttrs (old: rec {
name = "flameshot-${version}";
version = builtins.head (builtins.match "tags/v(.*)" src.rev);
src = self.fetchFromGitHub {
owner = "flameshot-org";
repo = "flameshot";
rev = "tags/v15.0.0";
hash = "sha256-5oaG8EW3QS8jX0V7YJHjMk5W4kaahm+SZ/Rl2xkLGbM=";
};
cmakeFlags = old.cmakeFlags ++ [
(self.lib.cmakeBool "ENABLE_IMGUR" true)
];
# Instead of nixpkgs' patches, made for 13.3.0: its load-missing-deps
# for 15, without the CVE-2026-62294 fix, which 15 has, and the
# macos-build one, which Linux doesn't need.
patches = [
./flameshot-15.load-missing-deps.patch
./flameshot-15.imgur.patch
./flameshot-15.history.patch
./flameshot-15.applauncher.patch
];
})
|