summary refs log tree commit diff
path: root/pkgs/tools/misc/flameshot
diff options
context:
space:
mode:
authorBart Brouns <bart@magnetophon.nl>2020-10-14 20:59:19 +0200
committerBart Brouns <bart@magnetophon.nl>2020-10-14 21:28:13 +0200
commit659ed4317ff80ded7be39c9b941bd1cb2792ac72 (patch)
tree71c608ff3c0a60409b652d301fe43042e3a2fe60 /pkgs/tools/misc/flameshot
parentb3aed163d551a7c8829132022531f7526fa8a2ac (diff)
downloadnixpkgs-659ed4317ff80ded7be39c9b941bd1cb2792ac72.tar
nixpkgs-659ed4317ff80ded7be39c9b941bd1cb2792ac72.tar.gz
nixpkgs-659ed4317ff80ded7be39c9b941bd1cb2792ac72.tar.bz2
nixpkgs-659ed4317ff80ded7be39c9b941bd1cb2792ac72.tar.lz
nixpkgs-659ed4317ff80ded7be39c9b941bd1cb2792ac72.tar.xz
nixpkgs-659ed4317ff80ded7be39c9b941bd1cb2792ac72.tar.zst
nixpkgs-659ed4317ff80ded7be39c9b941bd1cb2792ac72.zip
flameshot: 0.6.0 -> 0.8.4
Diffstat (limited to 'pkgs/tools/misc/flameshot')
-rw-r--r--pkgs/tools/misc/flameshot/default.nix32
1 files changed, 7 insertions, 25 deletions
diff --git a/pkgs/tools/misc/flameshot/default.nix b/pkgs/tools/misc/flameshot/default.nix
index afca2e3007e..de7d56e5584 100644
--- a/pkgs/tools/misc/flameshot/default.nix
+++ b/pkgs/tools/misc/flameshot/default.nix
@@ -1,44 +1,26 @@
-{ mkDerivation, lib, fetchFromGitHub, qtbase, qmake, qttools, qtsvg }:
+{ mkDerivation, lib, fetchFromGitHub, qtbase, cmake, qttools, qtsvg }:
 
-# To use `flameshot gui`, you will also need to put flameshot in `services.dbus.packages`
-# in configuration.nix so that the daemon gets launched properly:
-#
-#   services.dbus.packages = [ pkgs.flameshot ];
-#   environment.systemPackages = [ pkgs.flameshot ];
 mkDerivation rec {
   pname = "flameshot";
-  version = "0.6.0";
+  version = "0.8.4";
 
   src = fetchFromGitHub {
-    owner = "lupoDharkael";
+    owner = "flameshot-org";
     repo = "flameshot";
     rev = "v${version}";
-    sha256 = "193szslh55v44jzxzx5g9kxhl8p8di7vbcnxlid4acfidhnvgazm";
+    sha256 = "0nr50ma8l612drl2br084kb3xac7jqkqr41b26d4p9y7ylwk05yq";
   };
 
-  nativeBuildInputs = [ qmake qttools qtsvg ];
+  nativeBuildInputs = [ cmake qttools qtsvg ];
   buildInputs = [ qtbase ];
 
-  qmakeFlags = [ "PREFIX=${placeholder "out"}" ];
-
-  preConfigure = ''
-    # flameshot.pro assumes qmake is being run in a git checkout.
-    git() { echo ${version}; }
-    export -f git
-  '';
-
-  postFixup = ''
-    substituteInPlace $out/share/dbus-1/services/org.dharkael.Flameshot.service \
-      --replace "/usr/local" "$out"
-  '';
-
   enableParallelBuilding = true;
 
   meta = with lib; {
     description = "Powerful yet simple to use screenshot software";
-    homepage = "https://github.com/lupoDharkael/flameshot";
+    homepage = "https://flameshot.js.org";
     maintainers = [ maintainers.scode ];
-    license = lib.licenses.gpl3;
+    license = lib.licenses.gpl3Plus;
     platforms = lib.platforms.linux;
   };
 }