mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 23:03:40 +01:00
qdirstat: init at 1.4
This commit is contained in:
parent
5a6b5b8daf
commit
b870e84850
2 changed files with 57 additions and 0 deletions
55
pkgs/applications/misc/qdirstat/default.nix
Normal file
55
pkgs/applications/misc/qdirstat/default.nix
Normal file
|
@ -0,0 +1,55 @@
|
|||
{ stdenv, fetchFromGitHub, qmake
|
||||
, coreutils, xdg_utils, bash, perl }:
|
||||
|
||||
let
|
||||
version = "1.4";
|
||||
in stdenv.mkDerivation {
|
||||
name = "qdirstat-${version}";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "shundhammer";
|
||||
repo = "qdirstat";
|
||||
rev = "${version}";
|
||||
sha256 = "1ppasbr0mq301q6n3rm0bsmprs7vgkcjmmc0gbgqpgw84nmp9fqh";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ qmake ];
|
||||
|
||||
buildInputs = [ perl ];
|
||||
|
||||
preBuild = ''
|
||||
substituteInPlace scripts/scripts.pro \
|
||||
--replace /bin/true ${coreutils}/bin/true \
|
||||
--replace /usr/bin $out/bin
|
||||
substituteInPlace src/src.pro \
|
||||
--replace /usr/bin $out/bin \
|
||||
--replace /usr/share $out/share
|
||||
for i in doc/doc.pro doc/stats/stats.pro
|
||||
do
|
||||
substituteInPlace $i \
|
||||
--replace /usr/share $out/share
|
||||
done
|
||||
|
||||
for i in src/MainWindow.cpp src/FileSizeStatsWindow.cpp
|
||||
do
|
||||
substituteInPlace $i \
|
||||
--replace /usr/bin/xdg-open ${xdg_utils}/bin/xdg-open
|
||||
done
|
||||
for i in src/Cleanup.cpp src/cleanup-config-page.ui
|
||||
do
|
||||
substituteInPlace $i \
|
||||
--replace /bin/bash ${bash}/bin/bash \
|
||||
--replace /bin/sh ${bash}/bin/sh
|
||||
done
|
||||
substituteInPlace src/StdCleanup.cpp \
|
||||
--replace /bin/bash ${bash}/bin/bash
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Graphical disk usage analyzer";
|
||||
homepage = src.meta.homepage;
|
||||
license = licenses.gpl2;
|
||||
maintainers = with maintainers; [ gnidorah ];
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
|
@ -15740,6 +15740,8 @@ with pkgs;
|
|||
miniupnpc = miniupnpc_1;
|
||||
};
|
||||
|
||||
qdirstat = libsForQt5.callPackage ../applications/misc/qdirstat {};
|
||||
|
||||
qemu = callPackage ../applications/virtualization/qemu {
|
||||
inherit (darwin.apple_sdk.frameworks) CoreServices Cocoa;
|
||||
inherit (darwin.stubs) rez setfile;
|
||||
|
|
Loading…
Reference in a new issue