Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
41 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,54 @@ | ||
{ stdenv, fetchurl, python2Packages }: | ||
|
||
python2Packages.buildPythonApplication rec { | ||
name = "iotop-0.6"; | ||
let | ||
policy = '' | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE policyconfig PUBLIC "-//freedesktop//DTD PolicyKit Policy Configuration 1.0//EN" | ||
"http://www.freedesktop.org/standards/PolicyKit/1/policyconfig.dtd"> | ||
<policyconfig> | ||
<vendor>The systemd Project</vendor> | ||
<vendor_url>http://www.freedesktop.org/wiki/Software/systemd</vendor_url> | ||
<action id="org.freedesktop.systemd1.reply-password"> | ||
<description>Send passphrase back to system</description> | ||
<message>Authentication is required to send the entered passphrase back to the system.</message> | ||
<defaults> | ||
<allow_any>no</allow_any> | ||
<allow_inactive>no</allow_inactive> | ||
<allow_active>auth_admin_keep</allow_active> | ||
</defaults> | ||
<annotate key="org.freedesktop.policykit.exec.path">/nix/store/4mhj2swvnacffi9zyj54gd5ig343jwga-systemd-232/lib/systemd/systemd-reply-password</annotate> | ||
</action> | ||
<action id="org.freedesktop.systemd1.manage-units"> | ||
<description>Manage system services or other units</description> | ||
<message>Authentication is required to manage system services or other units.</message> | ||
<defaults> | ||
<allow_any>auth_admin</allow_any> | ||
<allow_inactive>auth_admin</allow_inactive> | ||
<allow_active>auth_admin_keep</allow_active> | ||
</defaults> | ||
</action> | ||
</policyconfig>''; | ||
|
||
in python2Packages.buildPythonApplication rec { | ||
name = "iotop-${version}"; | ||
version = "0.6"; | ||
|
||
src = fetchurl { | ||
url = "http://guichaz.free.fr/iotop/files/${name}.tar.bz2"; | ||
sha256 = "0nzprs6zqax0cwq8h7hnszdl3d2m4c2d4vjfxfxbnjfs9sia5pis"; | ||
}; | ||
|
||
postInstall = '' | ||
''; | ||
|
||
# there are no tests as of v0.6 | ||
doCheck = false; | ||
|
||
meta = { | ||
meta = with stdenv.lib; { | ||
description = "A tool to find out the processes doing the most IO"; | ||
maintainers = [ stdenv.lib.maintainers.raskin ]; | ||
platforms = stdenv.lib.platforms.linux; | ||
maintainers = with maintainers; [ raskin ]; | ||
platforms = platforms.linux; | ||
}; | ||
} |