Packaging codestation/vitamtp with Nix.
It might work using a different source code (e.g. yifanlu/VitaMTP or other forks) but I did not try it. It is mainly written to be used with rx342/nix-qcma.
Tested on x86_64-linux
.
vitamtp
is an "old" package (2.5.9
dates back to 2016) which makes it tricky to build today.
With Nix and pinned dependencies, we are sure that it will work forever™ (for legal reasons: this is a joke).
- An old version of
libxml2
is required (we use2.9.14
in this repository)- Defined in the overlay
- Needs to be built from source, which increases build time
git clone https://github.com/rx342/nix-vitamtp.git
nix-build -A libvitamtp
To be able to detect your PS VITA you need to add an udev rule. You can download it from codestation/vitamtp or do it from this repository (it does the same thing). If you decide to install from this repository, choose one of the following method according to your Linux distribution.
You need to add the following to your configuration.nix
imports = [ "${./path/to/nix-vitamtp}/modules/nixos.nix" ];
and you can check that /etc/udev/rules.d/60-psvita.rules
exists.
cd nix-vitamtp
nix-build -A udev
sudo cp ./result/lib/udev/rules.d/60-psvita.rules /usr/lib/udev/rules.d/