Merge pull request #136350 from cdepillabout/termonad-fixup
termonad: add meta.mainProgram to easily run with flakes
This commit is contained in:
commit
5a2626087a
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