Created
September 1, 2018 12:32
-
-
Save adrianparvino/8020d891c85417957ecb7891dc5fd395 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ 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