nixpkgs/pkgs/by-name/ps/ps3netsrv/package.nix
aleksana 571c71e6f7 treewide: migrate packages to pkgs/by-name, take 1
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.
2024-11-09 20:04:51 +08:00

37 lines
949 B
Nix

{ lib, stdenv, fetchzip, mbedtls, meson, ninja }:
let
webManModVersion = "1.47.42";
in
stdenv.mkDerivation rec {
pname = "ps3netsrv";
version = "20220813";
src = fetchzip {
url = "https://github.com/aldostools/webMAN-MOD/releases/download/${webManModVersion}/${pname}_${version}.zip";
hash = "sha256-ynFuCD+tp8E/DDdB/HU9BCmwKcmQy6NBx26MKnP4W0o=";
};
sourceRoot = "./source/${pname}";
buildInputs = [
meson
ninja
mbedtls
];
env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.hostPlatform.isDarwin "-Doff64_t=off_t";
postInstall = ''
install -Dm644 ../LICENSE.TXT $out/usr/share/licenses/${pname}/LICENSE.TXT
'';
meta = {
description = "PS3 Net Server (mod by aldostools)";
homepage = "https://github.com/aldostools/webMAN-MOD/";
license = lib.licenses.gpl3;
platforms = lib.platforms.unix;
maintainers = with lib.maintainers; [ makefu ];
mainProgram = "ps3netsrv";
};
}