summaryrefslogtreecommitdiffstats
path: root/makefu/5pkgs/pkgrename/default.nix
blob: 1b5ecc486255c56476cc4324941e0a4f7699a93b (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.05";

  src = fetchFromGitHub {
    owner = "hippie68";
    repo = "pkgrename";
    rev = "c7c95f0ea49324433db4a7df8db8b0905198e62e";
    sha256 = "komFm9VRdH4DPxcnHzbm/sGVEWMbfcvFPLEFdbU/K5g=";
  };

  buildInputs = [ curl.dev ];
  buildPhase = ''
    cd pkgrename.c
    $CC pkgrename.c src/*.c -o pkgrename -s -O3 $(curl-config  --cflags --libs) -Wl,--allow-multiple-definition
  '';
  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 ];
  };
}