nixpkgs/pkgs/applications/terminal-emulators/termonad/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

27 lines
705 B
Nix
Raw Normal View History

{ stdenv, haskellPackages, makeWrapper, packages ? (pkgSet: []), nixosTests }:
2018-11-20 00:37:44 +00:00
let
termonadEnv = haskellPackages.ghcWithPackages (self: [ self.termonad ] ++ packages self);
2018-11-20 00:37:44 +00:00
in stdenv.mkDerivation {
2022-03-07 11:37:20 +00:00
pname = "termonad-with-packages";
inherit (termonadEnv) version;
2018-11-20 00:37:44 +00:00
nativeBuildInputs = [ makeWrapper ];
buildCommand = ''
mkdir -p $out/bin $out/share
makeWrapper ${termonadEnv}/bin/termonad $out/bin/termonad \
--set NIX_GHC "${termonadEnv}/bin/ghc"
'';
# trivial derivation
preferLocalBuild = true;
allowSubstitutes = false;
passthru.tests.test = nixosTests.terminal-emulators.termonad;
meta = haskellPackages.termonad.meta // {
mainProgram = "termonad";
};
2018-11-20 00:37:44 +00:00
}