nixpkgs-suyu/pkgs/tools/misc/flameshot/default.nix

40 lines
1.1 KiB
Nix
Raw Normal View History

2018-12-15 06:01:54 +01:00
{ stdenv, fetchFromGitHub, qtbase, qmake, qttools, qtsvg }:
2018-01-21 07:47:57 +01:00
stdenv.mkDerivation rec {
name = "flameshot-${version}";
2018-12-15 06:01:54 +01:00
version = "0.6.0";
2018-01-21 07:47:57 +01:00
2018-12-15 06:01:54 +01:00
nativeBuildInputs = [ qmake qttools qtsvg ];
2018-01-21 07:47:57 +01:00
buildInputs = [ qtbase ];
qmakeFlags = [
# flameshot.pro assumes qmake is being run in a git checkout and uses it
# to determine the version being built. Let's replace that.
"VERSION=${version}"
"PREFIX=/"
];
patchPhase = ''
sed -i 's/VERSION =/#VERSION =/g' flameshot.pro
sed -i 's,USRPATH = /usr/local,USRPATH = /,g' flameshot.pro
'';
installFlags = [ "INSTALL_ROOT=$(out)" ];
src = fetchFromGitHub {
owner = "lupoDharkael";
repo = "flameshot";
rev = "v${version}";
2018-12-15 06:01:54 +01:00
sha256 = "193szslh55v44jzxzx5g9kxhl8p8di7vbcnxlid4acfidhnvgazm";
2018-01-21 07:47:57 +01:00
};
enableParallelBuilding = true;
meta = with stdenv.lib; {
description = "Powerful yet simple to use screenshot software";
homepage = https://github.com/lupoDharkael/flameshot;
maintainers = [ maintainers.scode ];
license = stdenv.lib.licenses.gpl3;
2018-03-04 00:32:14 +01:00
platforms = stdenv.lib.platforms.linux;
2018-01-21 07:47:57 +01:00
};
}