diff options
author | Joachim Fasting <joachifm@fastmail.fm> | 2015-04-02 14:50:49 +0200 |
---|---|---|
committer | Joachim Fasting <joachifm@fastmail.fm> | 2015-11-24 14:45:15 +0100 |
commit | fed17b3467707d28e0694e85091b5b676b761ac3 (patch) | |
tree | 3802d38d63d8835b2fc322c13134047b96c5d63c /pkgs/applications/window-managers/stalonetray/default.nix | |
parent | 38196171e8f74e25be336a80a0fc3f87addd7dfb (diff) |
stalonetray: reimplement using mkDerivation
Diffstat (limited to 'pkgs/applications/window-managers/stalonetray/default.nix')
-rw-r--r-- | pkgs/applications/window-managers/stalonetray/default.nix | 50 |
1 files changed, 13 insertions, 37 deletions
diff --git a/pkgs/applications/window-managers/stalonetray/default.nix b/pkgs/applications/window-managers/stalonetray/default.nix index fdb81a88b1516..0c362dce60b57 100644 --- a/pkgs/applications/window-managers/stalonetray/default.nix +++ b/pkgs/applications/window-managers/stalonetray/default.nix @@ -1,47 +1,23 @@ -x@{builderDefsPackage - , libX11, xproto - , ...}: -builderDefsPackage -(a : -let - helperArgNames = ["stdenv" "fetchurl" "builderDefsPackage"] ++ - []; +{ stdenv, fetchurl, libX11, xproto }: - buildInputs = map (n: builtins.getAttr n x) - (builtins.attrNames (builtins.removeAttrs x helperArgNames)); - sourceInfo = rec { - baseName="stalonetray"; - version="0.8.1"; - name="${baseName}-${version}"; - url="mirror://sourceforge/${baseName}/${name}.tar.bz2"; - hash="1wp8pnlv34w7xizj1vivnc3fkwqq4qgb9dbrsg15598iw85gi8ll"; +stdenv.mkDerivation rec { + name = "stalonetray-${version}"; + version = "0.8.1"; + src = fetchurl { + url = "mirror://sourceforge/stalonetray/${name}.tar.bz2"; + sha256 = "1wp8pnlv34w7xizj1vivnc3fkwqq4qgb9dbrsg15598iw85gi8ll"; }; -in -rec { - src = a.fetchurl { - url = sourceInfo.url; - sha256 = sourceInfo.hash; - }; - - inherit (sourceInfo) name version; - inherit buildInputs; + buildInputs = [ libX11 xproto ]; - /* doConfigure should be removed if not needed */ - phaseNames = ["doConfigure" "doMakeInstall"]; - - meta = { + meta = with stdenv.lib; { description = "Stand alone tray"; - maintainers = with a.lib.maintainers; - [ - raskin - ]; - platforms = with a.lib.platforms; - linux; + maintainers = with maintainers; [ raskin ]; + platforms = with platforms; linux; }; + passthru = { updateInfo = { downloadPage = "http://sourceforge.net/projects/stalonetray/files/"; }; }; -}) x - +} |