blob: 5eeb161e746d3a54b1c17233886d5be2bc0a6419 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
{ lib, stdenv, fetchFromGitHub, curl
}:
stdenv.mkDerivation rec {
name = "pkgrename";
version = "1.03";
src = fetchFromGitHub {
owner = "hippie68";
repo = "pkgrename";
rev = "c3e5c47ed9367273bd09577af46d3d9bf87b2a50";
sha256 = "0cphxdpj04h1i0qf5mji3xqdsbyilvd5b4gwp4vx914r6k5f0xf3";
};
buildInputs = [ curl.dev ];
buildPhase = ''
cd pkgrename.c
gcc pkgrename.c src/*.c -o pkgrename -lcurl -s -O1 $(curl-config --cflags --libs)
'';
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 ];
};
}
|