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.
32 lines
952 B
Nix
32 lines
952 B
Nix
{ lib, stdenv, fetchFromGitHub, meson, ninja }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
version = "1.1.1";
|
|
pname = "pfsshell";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "uyjulian";
|
|
repo = "pfsshell";
|
|
rev = "v${version}";
|
|
sha256 = "0cr91al3knsbfim75rzl7rxdsglcc144x0nizn7q4jx5cad3zbn8";
|
|
};
|
|
|
|
nativeBuildInputs = [ meson ninja ];
|
|
|
|
# Build errors since 1.1.1 when format hardening is enabled:
|
|
# cc1: error: '-Wformat-security' ignored without '-Wformat' [-Werror=format-security]
|
|
hardeningDisable = [ "format" ];
|
|
|
|
meta = with lib; {
|
|
inherit (src.meta) homepage;
|
|
description = "PFS (PlayStation File System) shell for POSIX-based systems";
|
|
platforms = platforms.unix;
|
|
license = with licenses; [
|
|
gpl2Only # the pfsshell software itself
|
|
afl20 # APA, PFS, and iomanX libraries which are compiled together with this package
|
|
];
|
|
maintainers = with maintainers; [ makefu ];
|
|
mainProgram = "pfsshell";
|
|
};
|
|
}
|