Add `psfo`.
This commit is contained in:
parent
38702db01b
commit
d0b918f2c6
|
@ -408,6 +408,7 @@
|
|||
irdkit = pkgs.callPackage ./home/packages/irdkit/package.nix {};
|
||||
nxtik = pkgs.callPackage ./home/packages/nxtik/package.nix {};
|
||||
ps3dec = pkgs.callPackage ./home/packages/ps3dec/package.nix {};
|
||||
psfo = pkgs.callPackage ./home/packages/psfo/package.nix {};
|
||||
rom-properties = pkgs.callPackage ./home/packages/rom-properties/package.nix {};
|
||||
sabretools = pkgs.callPackage ./home/packages/sabretools/package.nix {};
|
||||
# rom-properties_ninja = pkgs.callPackage ./home/packages/rom-properties/package.nix { useNinja = true; };
|
||||
|
|
|
@ -0,0 +1,44 @@
|
|||
{
|
||||
lib,
|
||||
fetchFromGitHub,
|
||||
gcc13Stdenv,
|
||||
}:
|
||||
|
||||
gcc13Stdenv.mkDerivation {
|
||||
pname = "sfo";
|
||||
version = "v1.02";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
name = "sfo";
|
||||
owner = "hippie68";
|
||||
repo = "sfo";
|
||||
rev = "b38cf18d8a5c60a7f05a604b8a67215b7fb67e0a";
|
||||
hash = "sha256-USW51qXBxWzbWBHo+Qa4Zm87YFfMDgrf2uW3R0vzPpA=";
|
||||
};
|
||||
|
||||
# nativeBuildInputs = [ makeWrapper ];
|
||||
|
||||
buildPhase = ''
|
||||
runHook preBuild
|
||||
gcc sfo.c -O3 -s -o sfo
|
||||
runHook postBuild
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
mkdir -p $out/bin
|
||||
cp -v sfo $out/bin/
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = {
|
||||
homepage = "https://github.com/hippie68/sfo";
|
||||
description = "DESCRIPTION PLACEHOLDER";
|
||||
longDescription = "DESCRIPTION PLACEHOLDER";
|
||||
license = lib.licenses.unfree;
|
||||
# No license file in repo.
|
||||
maintainers = [ lib.maintainers.whovian9369 ];
|
||||
mainProgram = "sfo";
|
||||
platforms = lib.platforms.linux;
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue