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