571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
39 lines
860 B
Nix
39 lines
860 B
Nix
{ stdenv
|
|
, fetchFromGitHub
|
|
, unstableGitUpdater
|
|
, lib
|
|
}:
|
|
stdenv.mkDerivation {
|
|
pname = "ps3iso-utils";
|
|
version = "277db7de";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "bucanero";
|
|
repo = "ps3iso-utils";
|
|
rev = "878090980a9042c61901920fed1b034af215e8c7";
|
|
hash = "sha256-HUx5BqHBvVMUHReuJL0RcyxXOnufSt1Zi/ieAlI2eoc=";
|
|
};
|
|
|
|
buildPhase = ''
|
|
mkdir -p bin/
|
|
find . -type f -name "*.c" -exec \
|
|
sh -c 'OFILE=`basename "{}" ".c"` && $CC "{}" -o bin/"$OFILE"' \;
|
|
'';
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/bin
|
|
cp bin/* $out/bin
|
|
'';
|
|
|
|
passthru.updateScript = unstableGitUpdater { };
|
|
|
|
meta = with lib; {
|
|
description = "Estwald's PS3ISO utilities";
|
|
homepage = "https://github.com/bucanero/ps3iso-utils";
|
|
license = licenses.gpl3Only;
|
|
maintainers = with maintainers; [ soupglasses ];
|
|
platforms = platforms.all;
|
|
};
|
|
}
|
|
|