mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 00:43:20 +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
|
let
|
||||||
inherit (stdenv.lib) optional optionals;
|
inherit (stdenv.lib) optional optionals;
|
||||||
|
|
||||||
sdlName = if sdlClient then "-sdl" else "";
|
|
||||||
gtkName = if gtkClient then "-gtk" else "";
|
|
||||||
|
|
||||||
name = "freeciv";
|
name = "freeciv";
|
||||||
version = "2.5.11";
|
version = "2.5.11";
|
||||||
in
|
in
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
name = "${name}${sdlName}${gtkName}-${version}";
|
name = "${name}-${version}";
|
||||||
inherit version;
|
inherit version;
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
|
@ -19218,7 +19218,7 @@ with pkgs;
|
|||||||
|
|
||||||
freeciv = callPackage ../games/freeciv { };
|
freeciv = callPackage ../games/freeciv { };
|
||||||
|
|
||||||
freeciv_gtk = callPackage ../games/freeciv {
|
freeciv_gtk = freeciv.override {
|
||||||
gtkClient = true;
|
gtkClient = true;
|
||||||
sdlClient = false;
|
sdlClient = false;
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user