summary refs log tree commit diff
path: root/pkgs/desktops/arcan/arcan/default.nix
diff options
context:
space:
mode:
authorAnderson Torres <torres.anderson.85@protonmail.com>2023-02-12 20:35:59 -0300
committerAnderson Torres <torres.anderson.85@protonmail.com>2023-02-13 23:43:11 -0300
commit3c6be4cec71023f4b88407b343c752a210afde45 (patch)
tree260c05f9678cfe12496a9be68f1d1f297cc1a1e0 /pkgs/desktops/arcan/arcan/default.nix
parent767aad5fed9ef8003e61a046e50576f97407f03f (diff)
downloadnixpkgs-3c6be4cec71023f4b88407b343c752a210afde45.tar
nixpkgs-3c6be4cec71023f4b88407b343c752a210afde45.tar.gz
nixpkgs-3c6be4cec71023f4b88407b343c752a210afde45.tar.bz2
nixpkgs-3c6be4cec71023f4b88407b343c752a210afde45.tar.lz
nixpkgs-3c6be4cec71023f4b88407b343c752a210afde45.tar.xz
nixpkgs-3c6be4cec71023f4b88407b343c752a210afde45.tar.zst
nixpkgs-3c6be4cec71023f4b88407b343c752a210afde45.zip
arcanPackages.arcan: cosmetic rewrite
Diffstat (limited to 'pkgs/desktops/arcan/arcan/default.nix')
-rw-r--r--pkgs/desktops/arcan/arcan/default.nix6
1 files changed, 3 insertions, 3 deletions
diff --git a/pkgs/desktops/arcan/arcan/default.nix b/pkgs/desktops/arcan/arcan/default.nix
index 22c214728f2..03e73f6813c 100644
--- a/pkgs/desktops/arcan/arcan/default.nix
+++ b/pkgs/desktops/arcan/arcan/default.nix
@@ -56,14 +56,14 @@ let
   cmakeFeatureFlag = feature: flag:
     "-D${feature}=${if flag then "on" else "off"}";
 in
-stdenv.mkDerivation (finalAttrs: {
+stdenv.mkDerivation (self: {
   pname = "arcan" + lib.optionalString useStaticOpenAL "-static-openal";
   version = "0.6.2.1";
 
   src = fetchFromGitHub {
     owner = "letoram";
     repo = "arcan";
-    rev = finalAttrs.version;
+    rev = self.version;
     hash = "sha256-7H3fVSsW5VANLqwhykY+Q53fPjz65utaGksh/OpZnJM=";
   };
 
@@ -172,7 +172,7 @@ stdenv.mkDerivation (finalAttrs: {
     "-DBUILD_PRESET=everything"
     # The upstream project recommends tagging the distribution
     "-DDISTR_TAG=Nixpkgs"
-    "-DENGINE_BUILDTAG=${finalAttrs.version}"
+    "-DENGINE_BUILDTAG=${self.version}"
     (cmakeFeatureFlag "HYBRID_SDL" true)
     (cmakeFeatureFlag "BUILTIN_LUA" useBuiltinLua)
     (cmakeFeatureFlag "DISABLE_JIT" useBuiltinLua)