Skip to content

Instantly share code, notes, and snippets.

@adrianparvino
Created September 1, 2018 12:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save adrianparvino/8020d891c85417957ecb7891dc5fd395 to your computer and use it in GitHub Desktop.
Save adrianparvino/8020d891c85417957ecb7891dc5fd395 to your computer and use it in GitHub Desktop.
{ stdenv
, haskellPackages
}:
let
ghc = haskellPackages.ghcWithPackages (hpkgs: with hpkgs; [
yi
yi-frontend-pango
yi-keymap-emacs
yi-misc-modes
yi-mode-haskell
]);
in
stdenv.mkDerivation {
name = "yi";
version = "0.1.0";
src = ./.;
phases = [ "unpackPhase" "buildPhase" "installPhase" ];
buildPhase = ''
${ghc}/bin/ghc Config.hs -o yi
'';
installPhase = ''
mkdir -p $out/bin
cp yi $out/bin/yi
'';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment