git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #27720 from gnidorah/qdirstat

qdirstat: init at 1.4

commitd160d1b40817bf1b8646e63a30e354ff3ad8b40c authorJörg Thalheim <Mic92@users.noreply.github.com> dateSun 30 Jul 2017, 11:03 (9 years ago) parente79d11bb870e84
2 files changed+57
pkgs/applications/misc/qdirstat/default.nix+55 pkgs/top-level/all-packages.nix+2
pkgs/applications/misc/qdirstat/default.nixnew file+55
@@ -0,0 +1,55 @@
1+{ stdenv, fetchFromGitHub, qmake
2+, coreutils, xdg_utils, bash, perl }:
3+
4+let
5+ version = "1.4";
6+in stdenv.mkDerivation {
7+ name = "qdirstat-${version}";
8+
9+ src = fetchFromGitHub {
10+ owner = "shundhammer";
11+ repo = "qdirstat";
12+ rev = "${version}";
13+ sha256 = "1ppasbr0mq301q6n3rm0bsmprs7vgkcjmmc0gbgqpgw84nmp9fqh";
14+ };
15+
16+ nativeBuildInputs = [ qmake ];
17+
18+ buildInputs = [ perl ];
19+
20+ preBuild = ''
21+ substituteInPlace scripts/scripts.pro \
22+ --replace /bin/true ${coreutils}/bin/true \
23+ --replace /usr/bin $out/bin
24+ substituteInPlace src/src.pro \
25+ --replace /usr/bin $out/bin \
26+ --replace /usr/share $out/share
27+ for i in doc/doc.pro doc/stats/stats.pro
28+ do
29+ substituteInPlace $i \
30+ --replace /usr/share $out/share
31+ done
32+
33+ for i in src/MainWindow.cpp src/FileSizeStatsWindow.cpp
34+ do
35+ substituteInPlace $i \
36+ --replace /usr/bin/xdg-open ${xdg_utils}/bin/xdg-open
37+ done
38+ for i in src/Cleanup.cpp src/cleanup-config-page.ui
39+ do
40+ substituteInPlace $i \
41+ --replace /bin/bash ${bash}/bin/bash \
42+ --replace /bin/sh ${bash}/bin/sh
43+ done
44+ substituteInPlace src/StdCleanup.cpp \
45+ --replace /bin/bash ${bash}/bin/bash
46+ '';
47+
48+ meta = with stdenv.lib; {
49+ description = "Graphical disk usage analyzer";
50+ homepage = src.meta.homepage;
51+ license = licenses.gpl2;
52+ maintainers = with maintainers; [ gnidorah ];
53+ platforms = platforms.linux;
54+ };
55+}
pkgs/top-level/all-packages.nix+2
@@ -15745,6 +15745,8 @@ with pkgs;
1574515745 miniupnpc = miniupnpc_1;
1574615746 };
1574715747
15748+ qdirstat = libsForQt5.callPackage ../applications/misc/qdirstat {};
15749+
1574815750 qemu = callPackage ../applications/virtualization/qemu {
1574915751 inherit (darwin.apple_sdk.frameworks) CoreServices Cocoa;
1575015752 inherit (darwin.stubs) rez setfile;