2021-12-04 20:24:48 +00:00
|
|
|
{ stdenv, fetchzip, lib
|
2018-10-20 19:39:26 +00:00
|
|
|
, makeWrapper
|
|
|
|
, autoPatchelfHook
|
|
|
|
, xlibs
|
|
|
|
, gnome3
|
|
|
|
, libpng12
|
|
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "ns-atmosphere-programmer-${version}";
|
|
|
|
version = "0.1";
|
|
|
|
|
|
|
|
src = fetchzip {
|
2018-12-16 17:48:16 +00:00
|
|
|
url = "https://archive.org/download/ns-atmosphere-programmer/ns-atmosphere-programmer-ubuntu-64bit-v01.zip";
|
|
|
|
# original source: http://www.ns-atmosphere.com/media/content/ns-atmosphere-programmer-ubuntu-64bit-v01.zip
|
|
|
|
sha256 = "1cnyydsmrcpfwpdiry7qybh179499wpbvlzq5rk442hq9ak416ri";
|
2018-10-20 19:39:26 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = with xlibs; [ libX11 libXxf86vm libSM gnome3.gtk libpng12 ];
|
|
|
|
nativeBuildInputs = [ autoPatchelfHook makeWrapper ];
|
|
|
|
|
|
|
|
installPhase = ''
|
2018-12-16 17:48:16 +00:00
|
|
|
install -D -m755 NS-Atmosphere $out/bin/NS-Atmosphere
|
2018-10-20 19:39:26 +00:00
|
|
|
wrapProgram $out/bin/NS-Atmosphere --prefix XDG_DATA_DIRS : "$GSETTINGS_SCHEMAS_PATH" \
|
|
|
|
--suffix XDG_DATA_DIRS : '${gnome3.defaultIconTheme}/share'
|
|
|
|
'';
|
|
|
|
|
|
|
|
dontStrip = true;
|
|
|
|
|
2021-12-04 20:24:48 +00:00
|
|
|
meta = with lib; {
|
2018-12-16 17:48:16 +00:00
|
|
|
description = "Payload programmer for ns-atmosphere injector for nintendo switch";
|
2018-10-20 19:39:26 +00:00
|
|
|
homepage = http://www.ns-atmosphere.com;
|
|
|
|
maintainers = [ maintainers.makefu ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
license = with licenses; [ unfree ];
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|