mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 16:33:15 +00:00
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:
parent
dadb35fdb3
commit
04bc0bd2b7
@ -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 {
|
||||
|
@ -19218,7 +19218,7 @@ with pkgs;
|
||||
|
||||
freeciv = callPackage ../games/freeciv { };
|
||||
|
||||
freeciv_gtk = callPackage ../games/freeciv {
|
||||
freeciv_gtk = freeciv.override {
|
||||
gtkClient = true;
|
||||
sdlClient = false;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user