nixpkgs/pkgs/by-name/as/asap/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

54 lines
1.1 KiB
Nix

{ stdenv
, lib
, fetchzip
, SDL
}:
stdenv.mkDerivation rec {
pname = "asap";
version = "6.0.3";
src = fetchzip {
url = "mirror://sourceforge/project/asap/asap/${version}/asap-${version}.tar.gz";
sha256 = "sha256-a4RUtFue5wdoGUykLRb46s4+yR/I/7DhwE1SiWPRg8s=";
};
outputs = [ "out" "dev" ];
buildInputs = [
SDL
];
enableParallelBuilding = true;
buildFlags = [
"CC=${stdenv.cc.targetPrefix}cc"
# Only targets that don't need cito transpiler
"asapconv"
"asap-sdl"
"lib"
];
installFlags = [
"prefix=${placeholder "dev"}"
"bindir=${placeholder "out"}/bin"
"install-asapconv"
"install-sdl"
"install-lib"
];
meta = with lib; {
homepage = "https://asap.sourceforge.net/";
mainProgram = "asap-sdl";
description = "Another Slight Atari Player";
longDescription = ''
ASAP (Another Slight Atari Player) plays and converts 8-bit Atari POKEY
music (*.sap, *.cmc, *.mpt, *.rmt, *.tmc, ...) on modern computers and
mobile devices.
'';
maintainers = with maintainers; [ OPNA2608 ];
license = licenses.gpl2Plus;
platforms = platforms.all;
};
}