diff options
author | Andrew Brooks <andrew.brooks@flightaware.com> | 2021-04-30 18:13:16 -0500 |
---|---|---|
committer | Andrew Brooks <andrew.brooks@flightaware.com> | 2021-05-21 15:18:10 -0500 |
commit | bf222c3835a917ccc9d474a80f272e3a0be314c4 (patch) | |
tree | 56628f06f400f180ea7b6c6c03aec2bdb0b06bb1 /pkgs/development/libraries/bwidget | |
parent | 12315866d1e3a4161da705e8e00eb9ea06f62360 (diff) | |
download | nixpkgs-bf222c3835a917ccc9d474a80f272e3a0be314c4.tar nixpkgs-bf222c3835a917ccc9d474a80f272e3a0be314c4.tar.gz nixpkgs-bf222c3835a917ccc9d474a80f272e3a0be314c4.tar.bz2 nixpkgs-bf222c3835a917ccc9d474a80f272e3a0be314c4.tar.lz nixpkgs-bf222c3835a917ccc9d474a80f272e3a0be314c4.tar.xz nixpkgs-bf222c3835a917ccc9d474a80f272e3a0be314c4.tar.zst nixpkgs-bf222c3835a917ccc9d474a80f272e3a0be314c4.zip |
bwidget: Simplify bwidget package with tcl.mkTclDerivation
Diffstat (limited to 'pkgs/development/libraries/bwidget')
-rw-r--r-- | pkgs/development/libraries/bwidget/default.nix | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/pkgs/development/libraries/bwidget/default.nix b/pkgs/development/libraries/bwidget/default.nix index f3f09497a66..f289077c88b 100644 --- a/pkgs/development/libraries/bwidget/default.nix +++ b/pkgs/development/libraries/bwidget/default.nix @@ -1,8 +1,11 @@ -{ lib, stdenv, fetchurl, tcl }: +{ lib, fetchurl, tcl }: -stdenv.mkDerivation rec { - pname = "bwidget"; +let version = "1.9.14"; + libPrefix = "bwidget${version}"; +in tcl.mkTclDerivation { + pname = "bwidget"; + inherit version; src = fetchurl { url = "mirror://sourceforge/tcllib/bwidget-${version}.tar.gz"; @@ -12,16 +15,10 @@ stdenv.mkDerivation rec { dontBuild = true; installPhase = '' - mkdir -p "$out/lib/${passthru.libPrefix}" - cp -R *.tcl lang images "$out/lib/${passthru.libPrefix}" + mkdir -p "$out/lib/${libPrefix}" + cp -R *.tcl lang images "$out/lib/${libPrefix}" ''; - passthru = { - libPrefix = "bwidget${version}"; - }; - - buildInputs = [ tcl ]; - meta = { homepage = "https://sourceforge.net/projects/tcllib"; description = "High-level widget set for Tcl/Tk"; |