mirror of
https://gitlab.com/xonotic/xonotic
synced 2024-12-13 10:25:39 +00:00
nix: support compiler override
This commit is contained in:
parent
9d2e0f613a
commit
35a80781a1
@ -1,11 +1,14 @@
|
|||||||
# nix-shell -A xonotic
|
# nix-shell -A xonotic
|
||||||
|
# --argstr cc clang
|
||||||
{
|
{
|
||||||
nixpkgs ? <nixpkgs>,
|
nixpkgs ? <nixpkgs>,
|
||||||
pkgs ? (import nixpkgs) {}
|
pkgs ? (import nixpkgs) {},
|
||||||
|
cc ? null,
|
||||||
}:
|
}:
|
||||||
with pkgs;
|
with pkgs;
|
||||||
let
|
let
|
||||||
VERSION = "0.8.2";
|
VERSION = "0.8.2";
|
||||||
|
stdenv = if (cc != null) then overrideCC pkgs.stdenv pkgs."${cc}" else pkgs.stdenv;
|
||||||
targets = rec {
|
targets = rec {
|
||||||
xonotic = stdenv.mkDerivation rec {
|
xonotic = stdenv.mkDerivation rec {
|
||||||
name = "xonotic-${version}";
|
name = "xonotic-${version}";
|
||||||
|
Loading…
Reference in New Issue
Block a user