summary refs log tree commit diff
path: root/pkgs/applications/graphics/wings
diff options
context:
space:
mode:
authorFelix Bühler <Stunkymonkey@users.noreply.github.com>2021-11-07 21:29:51 +0100
committerGitHub <noreply@github.com>2021-11-07 21:29:51 +0100
commitfbdf78236a346f57f716fb66ed62e1993260c9e5 (patch)
treed8ad89d78673cf511a52ad329e014f76bc116641 /pkgs/applications/graphics/wings
parent3b61f5c4366408ffdffa485457e499867d778b96 (diff)
downloadnixpkgs-fbdf78236a346f57f716fb66ed62e1993260c9e5.tar
nixpkgs-fbdf78236a346f57f716fb66ed62e1993260c9e5.tar.gz
nixpkgs-fbdf78236a346f57f716fb66ed62e1993260c9e5.tar.bz2
nixpkgs-fbdf78236a346f57f716fb66ed62e1993260c9e5.tar.lz
nixpkgs-fbdf78236a346f57f716fb66ed62e1993260c9e5.tar.xz
nixpkgs-fbdf78236a346f57f716fb66ed62e1993260c9e5.tar.zst
nixpkgs-fbdf78236a346f57f716fb66ed62e1993260c9e5.zip
pkgs/applications: rename name to pname&version part 1 (#144949)
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
Diffstat (limited to 'pkgs/applications/graphics/wings')
-rw-r--r--pkgs/applications/graphics/wings/default.nix16
1 files changed, 9 insertions, 7 deletions
diff --git a/pkgs/applications/graphics/wings/default.nix b/pkgs/applications/graphics/wings/default.nix
index ef8d4b5096e..53f65859073 100644
--- a/pkgs/applications/graphics/wings/default.nix
+++ b/pkgs/applications/graphics/wings/default.nix
@@ -1,9 +1,11 @@
 { fetchurl, lib, stdenv, erlang, cl, libGL, libGLU, runtimeShell }:
 
 stdenv.mkDerivation rec {
-  name = "wings-2.2.4";
+  pname = "wings";
+  version = "2.2.4";
+
   src = fetchurl {
-    url = "mirror://sourceforge/wings/${name}.tar.bz2";
+    url = "mirror://sourceforge/wings/wings-${version}.tar.bz2";
     sha256 = "1xcmifs4vq2810pqqvsjsm8z3lz24ys4c05xkh82nyppip2s89a3";
   };
 
@@ -24,13 +26,13 @@ stdenv.mkDerivation rec {
 
   # I did not test the *cl* part. I added the -pa just by imitation.
   installPhase = ''
-    mkdir -p $out/bin $out/lib/${name}/ebin
-    cp ebin/* $out/lib/${name}/ebin
-    cp -R textures shaders plugins $out/lib/$name
+    mkdir -p $out/bin $out/lib/wings-${version}/ebin
+    cp ebin/* $out/lib/wings-${version}/ebin
+    cp -R textures shaders plugins $out/lib/wings-${version}
     cat << EOF > $out/bin/wings
     #!${runtimeShell}
     ${erlang}/bin/erl \
-      -pa $out/lib/${name}/ebin -run wings_start start_halt "$@"
+      -pa $out/lib/wings-${version}/ebin -run wings_start start_halt "$@"
     EOF
     chmod +x $out/bin/wings
   '';
@@ -39,7 +41,7 @@ stdenv.mkDerivation rec {
     homepage = "http://www.wings3d.com/";
     description = "Subdivision modeler inspired by Nendo and Mirai from Izware";
     license = lib.licenses.tcltk;
-    maintainers = with lib.maintainers; [viric];
+    maintainers = with lib.maintainers; [ viric ];
     platforms = with lib.platforms; linux;
   };
 }