1{
2 stdenv,
3 fetchFromGitHub,
4 unstableGitUpdater,
5 lib,
6}:
7stdenv.mkDerivation {
8 pname = "ps3iso-utils";
9 version = "277db7de";
10
11 src = fetchFromGitHub {
12 owner = "bucanero";
13 repo = "ps3iso-utils";
14 rev = "878090980a9042c61901920fed1b034af215e8c7";
15 hash = "sha256-HUx5BqHBvVMUHReuJL0RcyxXOnufSt1Zi/ieAlI2eoc=";
16 };
17
18 buildPhase = ''
19 mkdir -p bin/
20 find . -type f -name "*.c" -exec \
21 sh -c 'OFILE=`basename "{}" ".c"` && $CC "{}" -o bin/"$OFILE"' \;
22 '';
23
24 installPhase = ''
25 mkdir -p $out/bin
26 cp bin/* $out/bin
27 '';
28
29 passthru.updateScript = unstableGitUpdater { };
30
31 meta = with lib; {
32 description = "Estwald's PS3ISO utilities";
33 homepage = "https://github.com/bucanero/ps3iso-utils";
34 license = licenses.gpl3Only;
35 maintainers = with maintainers; [ soupglasses ];
36 platforms = platforms.all;
37 };
38}