From 433a13d12aa4f97bb003ea5561758ff5858d632a Mon Sep 17 00:00:00 2001 From: Charles Strahan Date: Tue, 30 Jun 2015 11:11:43 -0400 Subject: [PATCH] taffybar: init with-packages wrapper This provides a wrapper around taffybar, in a fashion similar to how package xmonad. --- .../window-managers/taffybar/default.nix | 15 +++++++++++++++ pkgs/top-level/all-packages.nix | 4 ++++ 2 files changed, 19 insertions(+) create mode 100644 pkgs/applications/window-managers/taffybar/default.nix diff --git a/pkgs/applications/window-managers/taffybar/default.nix b/pkgs/applications/window-managers/taffybar/default.nix new file mode 100644 index 000000000000..66e880197bb5 --- /dev/null +++ b/pkgs/applications/window-managers/taffybar/default.nix @@ -0,0 +1,15 @@ +{ stdenv, ghcWithPackages, xmessage, makeWrapper, packages ? (x: []) }: + +let +taffybarEnv = ghcWithPackages (self: [ self.taffybar ] ++ packages self); +in stdenv.mkDerivation { + name = "taffybar-with-packages"; + + nativeBuildInputs = [ makeWrapper ]; + + buildCommand = '' + mkdir -p $out/bin + makeWrapper ${taffybarEnv}/bin/taffybar $out/bin/taffybar \ + --set NIX_GHC "${taffybarEnv}/bin/ghc" + ''; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index b2566783eb53..0e746243fea2 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -12668,6 +12668,10 @@ let enableXft = true; }; + taffybar = callPackage ../applications/window-managers/taffybar { + inherit (haskellPackages) ghcWithPackages; + }; + tagainijisho = callPackage ../applications/office/tagainijisho {}; tahoelafs = callPackage ../tools/networking/p2p/tahoe-lafs {