flameshot: Use Qt mkDerivation (#65710)

This commit is contained in:
Mats Rauhala 2019-08-01 09:36:51 +03:00 committed by Jörg Thalheim
parent 3b37b0afc7
commit 4cf37460b6

View file

@ -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` # 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: # in configuration.nix so that the daemon gets launched properly:
# #
# services.dbus.packages = [ pkgs.flameshot ]; # services.dbus.packages = [ pkgs.flameshot ];
# environment.systemPackages = [ pkgs.flameshot ]; # environment.systemPackages = [ pkgs.flameshot ];
stdenv.mkDerivation rec { mkDerivation rec {
name = "flameshot-${version}"; pname = "flameshot";
version = "0.6.0"; version = "0.6.0";
src = fetchFromGitHub { src = fetchFromGitHub {
@ -34,11 +34,11 @@ stdenv.mkDerivation rec {
enableParallelBuilding = true; enableParallelBuilding = true;
meta = with stdenv.lib; { meta = with lib; {
description = "Powerful yet simple to use screenshot software"; description = "Powerful yet simple to use screenshot software";
homepage = https://github.com/lupoDharkael/flameshot; homepage = https://github.com/lupoDharkael/flameshot;
maintainers = [ maintainers.scode ]; maintainers = [ maintainers.scode ];
license = stdenv.lib.licenses.gpl3; license = lib.licenses.gpl3;
platforms = stdenv.lib.platforms.linux; platforms = lib.platforms.linux;
}; };
} }