1 { stdenv, haskellPackages, makeWrapper, packages ? (pkgSet: []), nixosTests }:
4 termonadEnv = haskellPackages.ghcWithPackages (self: [ self.termonad ] ++ packages self);
5 in stdenv.mkDerivation {
6 pname = "termonad-with-packages";
7 inherit (termonadEnv) version;
9 nativeBuildInputs = [ makeWrapper ];
12 mkdir -p $out/bin $out/share
13 makeWrapper ${termonadEnv}/bin/termonad $out/bin/termonad \
14 --set NIX_GHC "${termonadEnv}/bin/ghc"
18 preferLocalBuild = true;
19 allowSubstitutes = false;
21 passthru.tests.test = nixosTests.terminal-emulators.termonad;
23 meta = haskellPackages.termonad.meta // {
24 mainProgram = "termonad";