mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
taffybar: init with-packages wrapper
This provides a wrapper around taffybar, in a fashion similar to how package xmonad.
This commit is contained in:
parent
32b9ca3219
commit
433a13d12a
2 changed files with 19 additions and 0 deletions
15
pkgs/applications/window-managers/taffybar/default.nix
Normal file
15
pkgs/applications/window-managers/taffybar/default.nix
Normal file
|
@ -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"
|
||||
'';
|
||||
}
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue