2022-01-02 20:36:44 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, curl
|
|
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "pkgrename";
|
2022-12-12 19:38:03 +00:00
|
|
|
version = "1.05";
|
2022-01-02 20:36:44 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "hippie68";
|
|
|
|
repo = "pkgrename";
|
2022-12-12 19:38:03 +00:00
|
|
|
rev = "c7c95f0ea49324433db4a7df8db8b0905198e62e";
|
2022-01-02 20:36:44 +00:00
|
|
|
sha256 = "0cphxdpj04h1i0qf5mji3xqdsbyilvd5b4gwp4vx914r6k5f0xf3";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ curl.dev ];
|
|
|
|
buildPhase = ''
|
|
|
|
cd pkgrename.c
|
2022-12-12 19:38:03 +00:00
|
|
|
$CC pkgrename.c src/*.c -o pkgrename -s -O3 $(curl-config --cflags --libs) -Wl,--allow-multiple-definition
|
2022-01-02 20:36:44 +00:00
|
|
|
'';
|
|
|
|
installPhase = ''
|
|
|
|
install -D pkgrename $out/bin/pkgrename
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Tool to rename ps4 .pkg files";
|
|
|
|
homepage = "https://github.com/hippie68/pkgrename";
|
|
|
|
license = lib.licenses.gpl3;
|
|
|
|
platforms = lib.platforms.linux;
|
|
|
|
maintainers = with lib.maintainers; [ makefu ];
|
|
|
|
};
|
|
|
|
}
|