summary refs log tree commit diff
path: root/pkgs/tools/misc/flameshot/default.nix
diff options
context:
space:
mode:
authorMats Rauhala <mats.rauhala@gmail.com>2019-08-01 09:36:51 +0300
committerJörg Thalheim <Mic92@users.noreply.github.com>2019-08-01 07:36:51 +0100
commit4cf37460b66aedad6887bc302364dd814c12d37e (patch)
treed48188fdd0250d9ee272b24f03ae2d3c713b84ed /pkgs/tools/misc/flameshot/default.nix
parent3b37b0afc7b28aea42be4dce4299034b1eabd6f2 (diff)
downloadnixpkgs-4cf37460b66aedad6887bc302364dd814c12d37e.tar
nixpkgs-4cf37460b66aedad6887bc302364dd814c12d37e.tar.gz
nixpkgs-4cf37460b66aedad6887bc302364dd814c12d37e.tar.bz2
nixpkgs-4cf37460b66aedad6887bc302364dd814c12d37e.tar.lz
nixpkgs-4cf37460b66aedad6887bc302364dd814c12d37e.tar.xz
nixpkgs-4cf37460b66aedad6887bc302364dd814c12d37e.tar.zst
nixpkgs-4cf37460b66aedad6887bc302364dd814c12d37e.zip
flameshot: Use Qt mkDerivation (#65710)
Diffstat (limited to 'pkgs/tools/misc/flameshot/default.nix')
-rw-r--r--pkgs/tools/misc/flameshot/default.nix12
1 files changed, 6 insertions, 6 deletions
diff --git a/pkgs/tools/misc/flameshot/default.nix b/pkgs/tools/misc/flameshot/default.nix
index 16a46ac1432..ad6ed6acb4c 100644
--- a/pkgs/tools/misc/flameshot/default.nix
+++ b/pkgs/tools/misc/flameshot/default.nix
@@ -1,12 +1,12 @@
-{ stdenv, fetchFromGitHub, qtbase, qmake, qttools, qtsvg }:
+{ mkDerivation, lib, fetchFromGitHub, qtbase, qmake, 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 ];
-stdenv.mkDerivation rec {
-  name = "flameshot-${version}";
+mkDerivation rec {
+  pname = "flameshot";
   version = "0.6.0";
 
   src = fetchFromGitHub {
@@ -34,11 +34,11 @@ stdenv.mkDerivation rec {
 
   enableParallelBuilding = true;
 
-  meta = with stdenv.lib; {
+  meta = with lib; {
     description = "Powerful yet simple to use screenshot software";
     homepage = https://github.com/lupoDharkael/flameshot;
     maintainers = [ maintainers.scode ];
-    license = stdenv.lib.licenses.gpl3;
-    platforms = stdenv.lib.platforms.linux;
+    license = lib.licenses.gpl3;
+    platforms = lib.platforms.linux;
   };
 }