biglybt: 3.5.0.0 -> 3.6.0.0
[NixPkgs.git] / pkgs / applications / editors / yi / wrapper.nix
blob356a04b36e96a5199b94bb9c3262c6a1e5fadabf
1 # To use this for hacking of your Yi config file, drop into a shell
2 # with env attribute.
3 { lib, stdenv, makeWrapper
4 , haskellPackages
5 , extraPackages ? (s: [])
6 }:
7 let
8   yiEnv = haskellPackages.ghcWithPackages
9     (self: [ self.yi ] ++ extraPackages self);
11 stdenv.mkDerivation {
12   pname = "yi-custom";
13   version = "0.0.0.1";
14   dontUnpack = true;
15   nativeBuildInputs = [ makeWrapper ];
17   buildCommand = ''
18     mkdir -p $out/bin
19     makeWrapper ${haskellPackages.yi}/bin/yi $out/bin/yi \
20       --set NIX_GHC ${yiEnv}/bin/ghc
21   '';
23   # For hacking purposes
24   passthru.env = yiEnv;
26   meta = with lib; {
27     description = "Allows Yi to find libraries and the compiler easily";
28     # This wrapper and wrapper only is under PD
29     license = licenses.publicDomain;
30     maintainers = with maintainers; [ ];
32     # dependency yi-language no longer builds
33     hydraPlatforms = lib.platforms.none;
34     broken = true;
35   };