Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 28 lines 614 B view raw
1# To use this for hacking of your Yi config file, drop into a shell 2# with env attribute. 3{ 4 lib, 5 stdenv, 6 makeWrapper, 7 haskellPackages, 8 extraPackages ? (s: [ ]), 9}: 10let 11 yiEnv = haskellPackages.ghcWithPackages (self: [ self.yi ] ++ extraPackages self); 12in 13stdenv.mkDerivation { 14 pname = "yi-custom"; 15 dontUnpack = true; 16 nativeBuildInputs = [ makeWrapper ]; 17 18 buildCommand = '' 19 mkdir -p $out/bin 20 makeWrapper ${haskellPackages.yi}/bin/yi $out/bin/yi \ 21 --set NIX_GHC ${yiEnv}/bin/ghc 22 ''; 23 24 # For hacking purposes 25 passthru.env = yiEnv; 26 27 inherit (haskellPackages.yi) meta version; 28}