stockholm/makefu/5pkgs/hactool/default.nix

31 lines
840 B
Nix
Raw Normal View History

2020-08-16 20:42:51 +00:00
{ lib, stdenv, fetchFromGitHub
}:
2020-08-16 19:47:33 +00:00
stdenv.mkDerivation rec {
pname = "hactool";
name = "${pname}-${version}";
version = "1.4.0";
src = fetchFromGitHub {
owner = "SciresM";
repo = "hactool";
rev = version;
2020-08-16 20:42:51 +00:00
sha256 = "0305ngsnwm8npzgyhyifasi4l802xnfz19r0kbzzniirmcn4082d";
2020-08-16 19:47:33 +00:00
};
preBuild = ''
cp config.mk.template config.mk
'';
installPhase = ''
install -D hactool $out/bin/hactool
'';
2020-08-16 20:42:51 +00:00
buildInputs = [ ];
nativeBuildInputs = [ ];
2020-08-16 19:47:33 +00:00
meta = {
2020-08-16 20:15:43 +00:00
description = "tool to view information about, decrypt, and extract common file formats for the Nintendo Switch, especially Nintendo Content Archives";
homepage = https://github.com/SciresM/hactool;
license = stdenv.lib.licenses.isc;
2020-08-16 19:47:33 +00:00
platforms = stdenv.lib.platforms.linux;
maintainers = with stdenv.lib.maintainers; [ makefu ];
};
}