-
-
Notifications
You must be signed in to change notification settings - Fork 19
/
ninfs.nix
35 lines (28 loc) · 1021 Bytes
/
ninfs.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
{ lib, pkgs, callPackage, buildPythonApplication, fetchPypi, pyctr, pycryptodomex, pypng, tkinter, setuptools, mfusepy, haccrypto, stdenv }:
buildPythonApplication rec {
pname = "ninfs";
version = "2.0";
srcs = builtins.path { path = ./.; name = "ninfs"; };
doCheck = false;
propagatedBuildInputs = [
pyctr
pycryptodomex
pypng
tkinter
setuptools
#fusepy # this gets added to PYTHONPATH manually in makeWrapperArgs
haccrypto
];
makeWrapperArgs = [ "--prefix PYTHONPATH : ${mfusepy}/${mfusepy.pythonModule.sitePackages}" ];
postInstall = lib.optionalString (!stdenv.isDarwin) ''
mkdir -p $out/share/{applications,icons}
NINFS_USE_NINFS_EXECUTABLE_IN_DESKTOP=1 $out/bin/ninfs --install-desktop-entry $out/share
'';
meta = with lib; {
description = "FUSE filesystem Python scripts for Nintendo console files";
homepage = "https://github.com/ihaveamac/ninfs";
license = licenses.mit;
platforms = platforms.unix;
mainProgram = "ninfs";
};
}