summary refs log tree commit diff
path: root/pkgs/applications/graphics/qscreenshot/default.nix
blob: fafc76a76ffeb80812ba5ab262b20dafe89b0374 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{ stdenv, fetchurl, dos2unix, which, qt, Carbon }:

stdenv.mkDerivation rec {
  name = "qscreenshot-1.0";

  src = fetchurl {
    url = "mirror://sourceforge/qscreenshot/${name}-src.tar.gz";
    sha256 = "1spj5fg2l8p5bk81xsv6hqn1kcrdiy54w19jsfb7g5i94vcb1pcx";
  };

  buildInputs = [ dos2unix which qt ]
    ++ stdenv.lib.optional stdenv.isDarwin Carbon;

  # 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 ];
  };
}