freeciv: cleanup overrides

This is how we do overrides elsewhere. The "name" suffix makes things
a little bit complicated IMO. Other input welcome.
This commit is contained in:
Matthew Bauer 2018-05-20 23:49:04 -05:00
parent dadb35fdb3
commit 04bc0bd2b7
2 changed files with 2 additions and 5 deletions

View File

@ -8,14 +8,11 @@
let
inherit (stdenv.lib) optional optionals;
sdlName = if sdlClient then "-sdl" else "";
gtkName = if gtkClient then "-gtk" else "";
name = "freeciv";
version = "2.5.11";
in
stdenv.mkDerivation {
name = "${name}${sdlName}${gtkName}-${version}";
name = "${name}-${version}";
inherit version;
src = fetchurl {

View File

@ -19218,7 +19218,7 @@ with pkgs;
freeciv = callPackage ../games/freeciv { };
freeciv_gtk = callPackage ../games/freeciv {
freeciv_gtk = freeciv.override {
gtkClient = true;
sdlClient = false;
};