mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-22 14:45:27 +00:00
termonad: Add wrapper
This commit is contained in:
parent
c605b98637
commit
823cd6e8ff
19
pkgs/applications/misc/termonad/default.nix
Normal file
19
pkgs/applications/misc/termonad/default.nix
Normal file
|
@ -0,0 +1,19 @@
|
|||
{ stdenv, ghcWithPackages, makeWrapper, packages ? (pkgSet: []) }:
|
||||
|
||||
let
|
||||
termonadEnv = ghcWithPackages (self: [ self.termonad ] ++ packages self);
|
||||
in stdenv.mkDerivation {
|
||||
name = "termonad-with-packages-${termonadEnv.version}";
|
||||
|
||||
nativeBuildInputs = [ makeWrapper ];
|
||||
|
||||
buildCommand = ''
|
||||
mkdir -p $out/bin $out/share
|
||||
makeWrapper ${termonadEnv}/bin/termonad $out/bin/termonad \
|
||||
--set NIX_GHC "${termonadEnv}/bin/ghc"
|
||||
'';
|
||||
|
||||
# trivial derivation
|
||||
preferLocalBuild = true;
|
||||
allowSubstitutes = false;
|
||||
}
|
|
@ -20019,6 +20019,10 @@ with pkgs;
|
|||
inherit (gnome3) gsettings-desktop-schemas vte;
|
||||
};
|
||||
|
||||
termonad-with-packages = callPackage ../applications/misc/termonad {
|
||||
inherit (haskellPackages) ghcWithPackages;
|
||||
};
|
||||
|
||||
xtrace = callPackage ../tools/X11/xtrace { };
|
||||
|
||||
xmacro = callPackage ../tools/X11/xmacro { };
|
||||
|
|
Loading…
Reference in a new issue