mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 23:36:17 +01:00
termonad: add meta.mainProgram to easily run with flakes
This also adds a top-level `termonad` alias for `termonad-with-packages`.
This commit is contained in:
parent
5f6b37f57e
commit
2fe1993baa
2 changed files with 9 additions and 5 deletions
|
@ -1,7 +1,7 @@
|
|||
{ stdenv, ghcWithPackages, makeWrapper, packages ? (pkgSet: []) }:
|
||||
{ stdenv, haskellPackages, makeWrapper, packages ? (pkgSet: []) }:
|
||||
|
||||
let
|
||||
termonadEnv = ghcWithPackages (self: [ self.termonad ] ++ packages self);
|
||||
termonadEnv = haskellPackages.ghcWithPackages (self: [ self.termonad ] ++ packages self);
|
||||
in stdenv.mkDerivation {
|
||||
name = "termonad-with-packages-${termonadEnv.version}";
|
||||
|
||||
|
@ -16,4 +16,8 @@ in stdenv.mkDerivation {
|
|||
# trivial derivation
|
||||
preferLocalBuild = true;
|
||||
allowSubstitutes = false;
|
||||
|
||||
meta = haskellPackages.termonad.meta // {
|
||||
mainProgram = "termonad";
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1025,9 +1025,9 @@ with pkgs;
|
|||
};
|
||||
termite-unwrapped = callPackage ../applications/terminal-emulators/termite { };
|
||||
|
||||
termonad-with-packages = callPackage ../applications/terminal-emulators/termonad {
|
||||
inherit (haskellPackages) ghcWithPackages;
|
||||
};
|
||||
termonad-with-packages = callPackage ../applications/terminal-emulators/termonad { };
|
||||
|
||||
termonad = termonad-with-packages;
|
||||
|
||||
termsyn = callPackage ../data/fonts/termsyn { };
|
||||
|
||||
|
|
Loading…
Reference in a new issue