From 41fa133548517e0351c924ff55dc818e38f4a0f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Forsman?= Date: Wed, 25 May 2016 18:27:13 +0200 Subject: [PATCH] qscreenshot: init at 1.0 Create and edit screenshots. --- .../graphics/qscreenshot/default.nix | 26 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 4 +++ 2 files changed, 30 insertions(+) create mode 100644 pkgs/applications/graphics/qscreenshot/default.nix diff --git a/pkgs/applications/graphics/qscreenshot/default.nix b/pkgs/applications/graphics/qscreenshot/default.nix new file mode 100644 index 000000000000..c4f4f6472ed6 --- /dev/null +++ b/pkgs/applications/graphics/qscreenshot/default.nix @@ -0,0 +1,26 @@ +{ stdenv, fetchurl, dos2unix, which, qt }: + +stdenv.mkDerivation rec { + name = "qscreenshot-1.0"; + + src = fetchurl { + url = "mirror://sourceforge/qscreenshot/${name}-src.tar.gz"; + sha256 = "1spj5fg2l8p5bk81xsv6hqn1kcrdiy54w19jsfb7g5i94vcb1pcx"; + }; + + buildInputs = [ dos2unix which qt ]; + + # Remove carriage returns that cause /bin/sh to abort + preConfigure = '' + dos2unix configure + sed -i "s|lrelease-qt4|lrelease|" src/src.pro + ''; + + meta = with stdenv.lib; { + description = "Simple creation and editing of screenshots"; + homepage = https://sourceforge.net/projects/qscreenshot/; + license = licenses.gpl2; + platforms = platforms.all; + maintainers = [ maintainers.bjornfor ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 302c806413cf..99fb033c7fcb 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -13848,6 +13848,10 @@ in qsampler = callPackage ../applications/audio/qsampler { }; + qscreenshot = callPackage ../applications/graphics/qscreenshot { + qt = qt4; + }; + qsynth = callPackage ../applications/audio/qsynth { }; qtox = qt5.callPackage ../applications/networking/instant-messengers/qtox { };