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
817 B
Nix
32 lines
817 B
Nix
{ lib, cmake, fetchFromGitHub, libGL, libiconv, libX11, openal, stdenv }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "cen64";
|
|
version = "unstable-2022-10-02";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "n64dev";
|
|
repo = "cen64";
|
|
rev = "ee6db7d803a77b474e73992fdc25d76b9723d806";
|
|
sha256 = "sha256-/CraSu/leNA0dl8NVgFjvKdOWrC9/namAz5NSxtPr+I=";
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
buildInputs = [ libGL libiconv openal libX11 ];
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
install -D {,$out/bin/}${pname}
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Cycle-Accurate Nintendo 64 Emulator";
|
|
license = licenses.bsd3;
|
|
homepage = "https://github.com/n64dev/cen64";
|
|
maintainers = [ maintainers._414owen ];
|
|
platforms = [ "x86_64-linux" ];
|
|
mainProgram = "cen64";
|
|
};
|
|
}
|