diff options
author | Tim Steinbach <tim@nequissimus.com> | 2018-11-19 19:37:44 -0500 |
---|---|---|
committer | Tim Steinbach <NeQuissimus@users.noreply.github.com> | 2018-11-22 01:27:46 +0000 |
commit | 823cd6e8ffc5c7247488e996a5993954ea3d94a7 (patch) | |
tree | 02ed06820ceaef061565db1008200a997fc1771e | |
parent | c605b986374f379010eb131db9c270b5f856e7f4 (diff) | |
download | nixpkgs-823cd6e8ffc5c7247488e996a5993954ea3d94a7.tar nixpkgs-823cd6e8ffc5c7247488e996a5993954ea3d94a7.tar.gz nixpkgs-823cd6e8ffc5c7247488e996a5993954ea3d94a7.tar.bz2 nixpkgs-823cd6e8ffc5c7247488e996a5993954ea3d94a7.tar.lz nixpkgs-823cd6e8ffc5c7247488e996a5993954ea3d94a7.tar.xz nixpkgs-823cd6e8ffc5c7247488e996a5993954ea3d94a7.tar.zst nixpkgs-823cd6e8ffc5c7247488e996a5993954ea3d94a7.zip |
termonad: Add wrapper
-rw-r--r-- | pkgs/applications/misc/termonad/default.nix | 19 | ||||
-rw-r--r-- | pkgs/top-level/all-packages.nix | 4 |
2 files changed, 23 insertions, 0 deletions
diff --git a/pkgs/applications/misc/termonad/default.nix b/pkgs/applications/misc/termonad/default.nix new file mode 100644 index 00000000000..4388cbcfb44 --- /dev/null +++ b/pkgs/applications/misc/termonad/default.nix @@ -0,0 +1,19 @@ +{ stdenv, ghcWithPackages, makeWrapper, packages ? (pkgSet: []) }: + +let + termonadEnv = ghcWithPackages (self: [ self.termonad ] ++ packages self); +in stdenv.mkDerivation { + name = "termonad-with-packages-${termonadEnv.version}"; + + 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; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index d4df32ddeab..fc3ef40479d 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -20019,6 +20019,10 @@ with pkgs; inherit (gnome3) gsettings-desktop-schemas vte; }; + termonad-with-packages = callPackage ../applications/misc/termonad { + inherit (haskellPackages) ghcWithPackages; + }; + xtrace = callPackage ../tools/X11/xtrace { }; xmacro = callPackage ../tools/X11/xmacro { }; |