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.
30 lines
812 B
Nix
30 lines
812 B
Nix
{ lib, stdenv, fetchurl, pkg-config, glib, libXaw, libX11, libXext
|
|
, libDSKSupport ? true, libdsk
|
|
, motifSupport ? false, lesstif
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
version = "20070122";
|
|
pname = "xcpc";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://sourceforge/xcpc/${pname}-${version}.tar.gz";
|
|
sha256 = "0hxsbhmyzyyrlidgg0q8izw55q0z40xrynw5a1c3frdnihj9jf7n";
|
|
};
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
buildInputs = [ glib libdsk libXaw libX11 libXext ]
|
|
++ lib.optional libDSKSupport libdsk
|
|
++ lib.optional motifSupport lesstif;
|
|
|
|
meta = with lib; {
|
|
description = "Portable Amstrad CPC 464/664/6128 emulator written in C";
|
|
homepage = "https://www.xcpc-emulator.net";
|
|
license = licenses.gpl2Plus;
|
|
maintainers = [ ];
|
|
platforms = platforms.linux;
|
|
mainProgram = "xcpc";
|
|
};
|
|
}
|