Merge pull request #131006 from otavio/topic/add-update-script-flameshot
flameshot: Add nix-update-script support
commita9f14fc1ad89696858837a873cd4c1ea61557676
authorSandro <sandro.jaeckel@gmail.com>
dateTue 27 Jul 2021, 11:16 (5 years ago)
parentde980513d1077d
pkgs/tools/misc/flameshot/default.nix+15−1
@@ -1,4 +1,12 @@
1−{ mkDerivation, lib, fetchFromGitHub, qtbase, cmake, qttools, qtsvg }:
1+{ mkDerivation
2+, lib
3+, fetchFromGitHub
4+, qtbase
5+, cmake
6+, qttools
7+, qtsvg
8+, nix-update-script
9+}:
210
311mkDerivation rec {
412 pname = "flameshot";
@@ -11,6 +19,12 @@ mkDerivation rec {
1119 sha256 = "1m0mx8qhy9ycsqh5dj6c7mwwpbhqxlds31dqdxxk0krwl750smi2";
1220 };
1321
22+ passthru = {
23+ updateScript = nix-update-script {
24+ attrPath = pname;
25+ };
26+ };
27+
1428 nativeBuildInputs = [ cmake qttools qtsvg ];
1529 buildInputs = [ qtbase ];
1630