summary refs log tree commit diff
path: root/pkgs/desktops/arcan/arcan/default.nix
diff options
context:
space:
mode:
authorAndersonTorres <torres.anderson.85@protonmail.com>2022-08-03 22:11:51 -0300
committerAndersonTorres <torres.anderson.85@protonmail.com>2022-08-03 22:26:36 -0300
commit9769e1b28a45d44d0841d8eb5d83c761dca437d5 (patch)
tree066efbafec63122efb5501bc4807fa7ca37bacde /pkgs/desktops/arcan/arcan/default.nix
parentd61e4954ba7f25d2cad32b5e2ed76daa0a1d8445 (diff)
downloadnixpkgs-9769e1b28a45d44d0841d8eb5d83c761dca437d5.tar
nixpkgs-9769e1b28a45d44d0841d8eb5d83c761dca437d5.tar.gz
nixpkgs-9769e1b28a45d44d0841d8eb5d83c761dca437d5.tar.bz2
nixpkgs-9769e1b28a45d44d0841d8eb5d83c761dca437d5.tar.lz
nixpkgs-9769e1b28a45d44d0841d8eb5d83c761dca437d5.tar.xz
nixpkgs-9769e1b28a45d44d0841d8eb5d83c761dca437d5.tar.zst
nixpkgs-9769e1b28a45d44d0841d8eb5d83c761dca437d5.zip
arcanPackages.arcan: use new style for recursive attributes
Diffstat (limited to 'pkgs/desktops/arcan/arcan/default.nix')
-rw-r--r--pkgs/desktops/arcan/arcan/default.nix12
1 files changed, 6 insertions, 6 deletions
diff --git a/pkgs/desktops/arcan/arcan/default.nix b/pkgs/desktops/arcan/arcan/default.nix
index 9623a47807d..0cd7e4e0db6 100644
--- a/pkgs/desktops/arcan/arcan/default.nix
+++ b/pkgs/desktops/arcan/arcan/default.nix
@@ -52,14 +52,14 @@
 , useStaticSqlite ? false
 }:
 
-stdenv.mkDerivation rec {
+stdenv.mkDerivation (finalAttrs: {
   pname = "arcan" + lib.optionalString useStaticOpenAL "-static-openal";
   version = "0.6.2";
 
   src = fetchFromGitHub {
     owner = "letoram";
     repo = "arcan";
-    rev = version;
+    rev = finalAttrs.version;
     hash = "sha256-Qwyt927eLqaCqJ4Lo4J1lQX2A24ke+AH52rmSCTnpO0=";
   };
 
@@ -156,8 +156,8 @@ stdenv.mkDerivation rec {
     substituteInPlace ./src/CMakeLists.txt --replace "SETUID" "# SETUID"
   '';
 
-  # INFO: According to the source code, the manpages need to be generated before
-  # the configure phase
+  # INFO: Arcan build scripts require the manpages to be generated
+  # before the configure phase
   preConfigure = lib.optionalString buildManPages ''
     pushd doc
     ruby docgen.rb mangen
@@ -168,7 +168,7 @@ stdenv.mkDerivation rec {
     "-DBUILD_PRESET=everything"
     # The upstream project recommends tagging the distribution
     "-DDISTR_TAG=Nixpkgs"
-    "-DENGINE_BUILDTAG=${version}"
+    "-DENGINE_BUILDTAG=${finalAttrs.version}"
     "-DHYBRID_SDL=on"
     "-DBUILTIN_LUA=${if useBuiltinLua then "on" else "off"}"
     "-DDISABLE_JIT=${if useBuiltinLua then "on" else "off"}"
@@ -196,4 +196,4 @@ stdenv.mkDerivation rec {
     maintainers = with maintainers; [ AndersonTorres ];
     platforms = platforms.unix;
   };
-}
+})