From 2db7a9dfbde7c3bdb21024ae1d72e2b795c987b4 Mon Sep 17 00:00:00 2001 From: Michael Raskin <7c6f434c@mail.ru> Date: Thu, 4 Nov 2010 08:28:24 +0000 Subject: [PATCH] Add stalonetray svn path=/nixpkgs/trunk/; revision=24595 --- .../window-managers/stalonetray/default.nix | 47 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 + 2 files changed, 49 insertions(+) create mode 100644 pkgs/applications/window-managers/stalonetray/default.nix diff --git a/pkgs/applications/window-managers/stalonetray/default.nix b/pkgs/applications/window-managers/stalonetray/default.nix new file mode 100644 index 00000000000..143e45b5484 --- /dev/null +++ b/pkgs/applications/window-managers/stalonetray/default.nix @@ -0,0 +1,47 @@ +x@{builderDefsPackage + , libX11, xproto + , ...}: +builderDefsPackage +(a : +let + helperArgNames = ["stdenv" "fetchurl" "builderDefsPackage"] ++ + []; + + buildInputs = map (n: builtins.getAttr n x) + (builtins.attrNames (builtins.removeAttrs x helperArgNames)); + sourceInfo = rec { + baseName="stalonetray"; + version="0.8.0"; + name="${baseName}-${version}"; + url="mirror://sourceforge/${baseName}/${name}.tar.bz2"; + hash="0ccllmpsmilns6xxl174vgcjf8kfakcrhg3psc4cg0yynqbi2mka"; + }; +in +rec { + src = a.fetchurl { + url = sourceInfo.url; + sha256 = sourceInfo.hash; + }; + + inherit (sourceInfo) name version; + inherit buildInputs; + + /* doConfigure should be removed if not needed */ + phaseNames = ["doConfigure" "doMakeInstall"]; + + meta = { + description = "Stand alone tray"; + maintainers = with a.lib.maintainers; + [ + raskin + ]; + platforms = with a.lib.platforms; + linux; + }; + passthru = { + updateInfo = { + downloadPage = "http://sourceforge.net/projects/stalonetray/files/"; + }; + }; +}) x + diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index df199ae36ea..571f931e52d 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -6193,6 +6193,8 @@ let sox = callPackage ../applications/misc/audio/sox { }; + stalonetray = callPackage ../applications/window-managers/stalonetray {}; + stumpwm = builderDefsPackage (import ../applications/window-managers/stumpwm) { inherit texinfo; clisp = clisp_2_44_1;