nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 20.09-alpha 32 lines 897 B view raw
1{ stdenv, fetchFromGitHub }: 2 3stdenv.mkDerivation rec { 4 pname = "hactool"; 5 version = "1.4.0"; 6 7 src = fetchFromGitHub { 8 owner = "SciresM"; 9 repo = "hactool"; 10 rev = version; 11 sha256 = "0305ngsnwm8npzgyhyifasi4l802xnfz19r0kbzzniirmcn4082d"; 12 }; 13 14 preBuild = '' 15 mv config.mk.template config.mk 16 ''; 17 18 makeFlags = stdenv.lib.optionals stdenv.isDarwin [ "CC=cc" ]; 19 20 installPhase = '' 21 install -D hactool $out/bin/hactool 22 ''; 23 24 meta = with stdenv.lib; { 25 homepage = "https://github.com/SciresM/hactool"; 26 description = "A tool to manipulate common file formats for the Nintendo Switch"; 27 longDescription = "A tool to view information about, decrypt, and extract common file formats for the Nintendo Switch, especially Nintendo Content Archives"; 28 license = licenses.isc; 29 maintainers = with maintainers; [ ivar ]; 30 platforms = platforms.unix; 31 }; 32}