diff options
author | Andrew Brooks <andrew.brooks@flightaware.com> | 2021-04-30 18:50:04 -0500 |
---|---|---|
committer | Andrew Brooks <andrew.brooks@flightaware.com> | 2021-05-21 15:18:13 -0500 |
commit | c677478b0bb5d8d78402db1c38d2946d54d26147 (patch) | |
tree | 9ff377e85550971aac460ad51ebdf94bcff7fca5 /pkgs/games/scid-vs-pc | |
parent | 9979565b0c7f7b4ac95848af15c23b14ba6ab4a9 (diff) |
scid-vs-pc: Simplify package with tcl.mkTclDerivation
Diffstat (limited to 'pkgs/games/scid-vs-pc')
-rw-r--r-- | pkgs/games/scid-vs-pc/default.nix | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/pkgs/games/scid-vs-pc/default.nix b/pkgs/games/scid-vs-pc/default.nix index 33373e0e7b1d7..2837f96357a7f 100644 --- a/pkgs/games/scid-vs-pc/default.nix +++ b/pkgs/games/scid-vs-pc/default.nix @@ -1,6 +1,6 @@ -{ lib, stdenv, fetchurl, tcl, tk, libX11, zlib, makeWrapper, makeDesktopItem }: +{ lib, fetchurl, tcl, tk, libX11, zlib, makeWrapper, makeDesktopItem }: -stdenv.mkDerivation rec { +tcl.mkTclDerivation rec { pname = "scid-vs-pc"; version = "4.21"; @@ -10,7 +10,7 @@ stdenv.mkDerivation rec { }; nativeBuildInputs = [ makeWrapper ]; - buildInputs = [ tcl tk libX11 zlib ]; + buildInputs = [ tk libX11 zlib ]; prePatch = '' sed -i -e '/^ *set headerPath *{/a ${tcl}/include ${tk}/include' \ @@ -49,7 +49,6 @@ stdenv.mkDerivation rec { for cmd in $out/bin/* ; do wrapProgram "$cmd" \ - --set TCLLIBPATH "${tcl}/${tcl.libdir}" \ --set TK_LIBRARY "${tk}/lib/${tk.libPrefix}" done ''; @@ -79,4 +78,3 @@ stdenv.mkDerivation rec { platforms = lib.platforms.linux; }; } - |