From 81cc5dc969a5cde6e26ee5061dc57cbbbf758450 Mon Sep 17 00:00:00 2001 From: makefu Date: Sun, 2 Jan 2022 21:36:44 +0100 Subject: ma pkgs.pkgrename: init --- makefu/5pkgs/pkgrename/default.nix | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 makefu/5pkgs/pkgrename/default.nix (limited to 'makefu') diff --git a/makefu/5pkgs/pkgrename/default.nix b/makefu/5pkgs/pkgrename/default.nix new file mode 100644 index 000000000..5eeb161e7 --- /dev/null +++ b/makefu/5pkgs/pkgrename/default.nix @@ -0,0 +1,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 ]; + }; +} -- cgit v1.2.3