nixpkgs/pkgs/by-name/vg/vgmplay-libvgm/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

44 lines
1007 B
Nix

{ stdenv
, lib
, fetchFromGitHub
, unstableGitUpdater
, cmake
, pkg-config
, zlib
, libvgm
, inih
}:
stdenv.mkDerivation {
pname = "vgmplay-libvgm";
version = "0.51.1-unstable-2024-01-03";
src = fetchFromGitHub {
owner = "ValleyBell";
repo = "vgmplay-libvgm";
rev = "7db1c63c056d79a8f9f533aa7eb82b7fdf7d456c";
hash = "sha256-GjBwu8Y/lOI8SLO4SrAWcntQIwKe/hXuh9tKbOPHQiA=";
};
nativeBuildInputs = [ cmake pkg-config ];
buildInputs = [ zlib libvgm inih ];
postInstall = ''
install -Dm644 ../VGMPlay.ini $out/share/vgmplay/VGMPlay.ini
'';
passthru.updateScript = unstableGitUpdater {
url = "https://github.com/ValleyBell/vgmplay-libvgm.git";
};
meta = with lib; {
mainProgram = "vgmplay";
homepage = "https://github.com/ValleyBell/vgmplay-libvgm";
description = "New VGMPlay, based on libvgm";
license = licenses.unfree; # no licensing text anywhere yet
maintainers = with maintainers; [ OPNA2608 ];
platforms = platforms.all;
};
}