jdiskreport: use copyDesktopItems hook
This commit is contained in:
parent
74088bad64
commit
5fbffecb14
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, fetchurl, unzip, jre, makeDesktopItem }:
|
{ stdenv, fetchurl, unzip, jre, makeDesktopItem, copyDesktopItems }:
|
||||||
|
|
||||||
let
|
let
|
||||||
desktopItem = makeDesktopItem {
|
desktopItem = makeDesktopItem {
|
||||||
@ -18,11 +18,12 @@ stdenv.mkDerivation {
|
|||||||
sha256 = "0d5mzkwsbh9s9b1vyvpaawqc09b0q41l2a7pmwf7386b1fsx6d58";
|
sha256 = "0d5mzkwsbh9s9b1vyvpaawqc09b0q41l2a7pmwf7386b1fsx6d58";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [ copyDesktopItems ];
|
||||||
buildInputs = [ unzip ];
|
buildInputs = [ unzip ];
|
||||||
inherit jre;
|
inherit jre;
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
source $stdenv/setup
|
runHook preInstall
|
||||||
|
|
||||||
unzip $src
|
unzip $src
|
||||||
|
|
||||||
@ -38,9 +39,11 @@ stdenv.mkDerivation {
|
|||||||
EOF
|
EOF
|
||||||
chmod +x $out/bin/jdiskreport
|
chmod +x $out/bin/jdiskreport
|
||||||
|
|
||||||
${desktopItem.buildCommand}
|
runHook postInstall
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
desktopItems = [ desktopItem ];
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
homepage = "http://www.jgoodies.com/freeware/jdiskreport/";
|
homepage = "http://www.jgoodies.com/freeware/jdiskreport/";
|
||||||
description = "A graphical utility to visualize disk usage";
|
description = "A graphical utility to visualize disk usage";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user