ma pkgs.sfo: init

This commit is contained in:
makefu 2022-01-30 13:46:51 +01:00
parent 3de63d2e46
commit a721b7ad9b
No known key found for this signature in database
GPG Key ID: 36F7711F3FC0F225
2 changed files with 34 additions and 0 deletions

View File

@ -8,9 +8,14 @@
bin2iso bin2iso
cue2pops cue2pops
# PS4
pkgrename
# switch # switch
nx_game_info nx_game_info
hactool hactool
nsrenamer nsrenamer
sfo
exfatprogs exfat-utils exfat
]; ];
} }

View File

@ -0,0 +1,29 @@
{ lib, stdenv, fetchFromGitHub, curl
}:
stdenv.mkDerivation rec {
name = "sfo";
version = "1.02";
src = fetchFromGitHub {
owner = "hippie68";
repo = "sfo";
rev = "b38cf18d8a5c60a7f05a604b8a67215b7fb67e0a";
sha256 = "141yyd5lgdz5vbghl3ncaxh3nvv6p03gks0ib3dnrif1lpbbj9ai";
};
buildInputs = [ curl.dev ];
buildPhase = ''
gcc sfo.c -o sfo
'';
installPhase = ''
install -D sfo $out/bin/sfo
'';
meta = {
description = "program that reads a file to print or modify its SFO parameters";
homepage = "https://github.com/hippie68/sfo";
license = lib.licenses.gpl3;
platforms = lib.platforms.linux;
maintainers = with lib.maintainers; [ makefu ];
};
}