1 { lib, stdenv , fetchFromGitHub , python3 , makeWrapper }:
3 let pythonEnv = python3.withPackages(ps: [ ps.tkinter ps.pyusb ]);
4 in stdenv.mkDerivation rec {
5 pname = "fusee-interfacee-tk";
8 src = fetchFromGitHub {
12 sha256 = "0ngwbwsj999flprv14xvhk7lp51nprrvcnlbnbk6y4qx5casm5md";
15 nativeBuildInputs = [ makeWrapper ];
16 buildInputs = [ pythonEnv ];
21 # The program isn't just called app, so I'm renaming it based on the repo name
22 # It also isn't a standard program, so we need to append the shebang to the top
23 echo "#!${pythonEnv.interpreter}" > $out/bin/fusee-interfacee-tk
24 cat app.py >> $out/bin/fusee-interfacee-tk
25 chmod +x $out/bin/fusee-interfacee-tk
27 # app.py depends on these to run
29 cp intermezzo.bin $out/bin/intermezzo.bin
33 homepage = "https://github.com/nh-server/fusee-interfacee-tk";
34 description = "Tool to send .bin files to a Nintendo Switch in RCM mode";
35 mainProgram = "fusee-interfacee-tk";
36 longDescription = "A mod of falquinhos Fusée Launcher for use with Nintendo Homebrew Switch Guide. It also adds the ability to mount SD while in RCM.
37 Must be run as sudo.";
38 maintainers = with maintainers; [ kristian-brucaj ];
39 license = licenses.gpl2;