about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAndrew Marshall <andrew@johnandrewmarshall.com>2023-08-01 00:26:40 -0400
committerAndrew Marshall <andrew@johnandrewmarshall.com>2023-08-04 17:29:18 -0400
commit27b7e86eeffc45a8addb87c0b59388ed78758e1c (patch)
treedce45aa47403569546b773ee2705e7112b265682
parent3f8cf9b158bebc00480a660d04810c9516955c86 (diff)
downloadnixlib-27b7e86eeffc45a8addb87c0b59388ed78758e1c.tar
nixlib-27b7e86eeffc45a8addb87c0b59388ed78758e1c.tar.gz
nixlib-27b7e86eeffc45a8addb87c0b59388ed78758e1c.tar.bz2
nixlib-27b7e86eeffc45a8addb87c0b59388ed78758e1c.tar.lz
nixlib-27b7e86eeffc45a8addb87c0b59388ed78758e1c.tar.xz
nixlib-27b7e86eeffc45a8addb87c0b59388ed78758e1c.tar.zst
nixlib-27b7e86eeffc45a8addb87c0b59388ed78758e1c.zip
altserver: cleanup
- Remove unused arg
- Remove unneeded buildInput
- Remove redundant chmod +r
- Set meta.mainProgram
- Set meta.sourceProvenance as this is sourcing binary code
-rw-r--r--pkgs/tools/misc/altserver-linux/default.nix9
1 files changed, 3 insertions, 6 deletions
diff --git a/pkgs/tools/misc/altserver-linux/default.nix b/pkgs/tools/misc/altserver-linux/default.nix
index fb689d745e93..20251f7d17fe 100644
--- a/pkgs/tools/misc/altserver-linux/default.nix
+++ b/pkgs/tools/misc/altserver-linux/default.nix
@@ -1,7 +1,6 @@
 { stdenv
 , fetchurl
 , lib
-, autoPatchelfHook
 , avahi-compat
 }:
 
@@ -14,10 +13,6 @@ stdenv.mkDerivation (finalAttrs: {
     hash = "sha256-C+fDrcaewRd6FQMrO443xdDk/vtHycQ5zWLCOLPqF/s=";
   };
 
-  buildInputs = [
-    avahi-compat
-  ];
-
   dontUnpack = true;
 
   installPhase = ''
@@ -25,7 +20,7 @@ stdenv.mkDerivation (finalAttrs: {
 
     mkdir -p $out/bin
     cp $src $out/bin/alt-server
-    chmod u+rx $out/bin/alt-server
+    chmod u+x $out/bin/alt-server
 
     runHook postInstall
   '';
@@ -34,6 +29,8 @@ stdenv.mkDerivation (finalAttrs: {
     homepage = "https://github.com/NyaMisty/AltServer-Linux";
     description = "AltServer for AltStore, but on-device. Requires root privileges as well as running a custom anisette server currently.";
     license = licenses.agpl3;
+    mainProgram = "alt-server";
+    sourceProvenance = with sourceTypes; [ binaryNativeCode ];
     platforms = platforms.linux;
     maintainers = with maintainers; [ max-amb ];
   };