arcan: change self to finalAttrs
This commit is contained in:
parent
2d2c3c0bda
commit
dc1b9f6ec6
|
@ -56,14 +56,14 @@ let
|
||||||
cmakeFeatureFlag = feature: flag:
|
cmakeFeatureFlag = feature: flag:
|
||||||
"-D${feature}=${if flag then "on" else "off"}";
|
"-D${feature}=${if flag then "on" else "off"}";
|
||||||
in
|
in
|
||||||
stdenv.mkDerivation (self: {
|
stdenv.mkDerivation (finalAttrs: {
|
||||||
pname = "arcan" + lib.optionalString useStaticOpenAL "-static-openal";
|
pname = "arcan" + lib.optionalString useStaticOpenAL "-static-openal";
|
||||||
version = "0.6.2.1";
|
version = "0.6.2.1";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "letoram";
|
owner = "letoram";
|
||||||
repo = "arcan";
|
repo = "arcan";
|
||||||
rev = self.version;
|
rev = finalAttrs.version;
|
||||||
hash = "sha256-7H3fVSsW5VANLqwhykY+Q53fPjz65utaGksh/OpZnJM=";
|
hash = "sha256-7H3fVSsW5VANLqwhykY+Q53fPjz65utaGksh/OpZnJM=";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -172,7 +172,7 @@ stdenv.mkDerivation (self: {
|
||||||
"-DBUILD_PRESET=everything"
|
"-DBUILD_PRESET=everything"
|
||||||
# The upstream project recommends tagging the distribution
|
# The upstream project recommends tagging the distribution
|
||||||
"-DDISTR_TAG=Nixpkgs"
|
"-DDISTR_TAG=Nixpkgs"
|
||||||
"-DENGINE_BUILDTAG=${self.version}"
|
"-DENGINE_BUILDTAG=${finalAttrs.version}"
|
||||||
(cmakeFeatureFlag "HYBRID_SDL" true)
|
(cmakeFeatureFlag "HYBRID_SDL" true)
|
||||||
(cmakeFeatureFlag "BUILTIN_LUA" useBuiltinLua)
|
(cmakeFeatureFlag "BUILTIN_LUA" useBuiltinLua)
|
||||||
(cmakeFeatureFlag "DISABLE_JIT" useBuiltinLua)
|
(cmakeFeatureFlag "DISABLE_JIT" useBuiltinLua)
|
||||||
|
|
Loading…
Reference in a new issue