Merge pull request #34096 from scode/scode/flameshot

flameshot: init at 0.5.0
This commit is contained in:
Graham Christensen 2018-01-28 07:44:12 -05:00 committed by GitHub
commit 140f0a802c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 42 additions and 0 deletions

View File

@ -610,6 +610,7 @@
schmitthenner = "Fabian Schmitthenner <development@schmitthenner.eu>"; schmitthenner = "Fabian Schmitthenner <development@schmitthenner.eu>";
schneefux = "schneefux <schneefux+nixos_pkg@schneefux.xyz>"; schneefux = "schneefux <schneefux+nixos_pkg@schneefux.xyz>";
schristo = "Scott Christopher <schristopher@konputa.com>"; schristo = "Scott Christopher <schristopher@konputa.com>";
scode = "Peter Schuller <peter.schuller@infidyne.com>";
scolobb = "Sergiu Ivanov <sivanov@colimite.fr>"; scolobb = "Sergiu Ivanov <sivanov@colimite.fr>";
sdll = "Sasha Illarionov <sasha.delly@gmail.com>"; sdll = "Sasha Illarionov <sasha.delly@gmail.com>";
SeanZicari = "Sean Zicari <sean.zicari@gmail.com>"; SeanZicari = "Sean Zicari <sean.zicari@gmail.com>";

View File

@ -0,0 +1,39 @@
{ stdenv, fetchFromGitHub, qtbase, qmake, qttools }:
stdenv.mkDerivation rec {
name = "flameshot-${version}";
version = "0.5.0";
nativeBuildInputs = [ qmake qttools ];
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}";
sha256 = "1fy4il7rdj294l9cs642hx23bry25j9phn37274r2b87hwzy1rrv";
};
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;
platforms = stdenv.lib.platforms.all;
};
}

View File

@ -15220,6 +15220,8 @@ with pkgs;
flac = callPackage ../applications/audio/flac { }; flac = callPackage ../applications/audio/flac { };
flameshot = libsForQt5.callPackage ../tools/misc/flameshot { };
flashplayer = callPackage ../applications/networking/browsers/mozilla-plugins/flashplayer { flashplayer = callPackage ../applications/networking/browsers/mozilla-plugins/flashplayer {
debug = config.flashplayer.debug or false; debug = config.flashplayer.debug or false;
}; };