nixpkgs/pkgs/by-name/op/opencbm/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.3 KiB
Nix

{ lib
, stdenv
, fetchFromGitHub
, cc65
, ncurses
, pkg-config
, libusb1
}:
stdenv.mkDerivation rec {
pname = "opencbm";
version = "0.4.99.104";
src = fetchFromGitHub {
owner = "OpenCBM";
repo = "OpenCBM";
rev = "v${version}";
sha256 = "sha256-5lj5F79Gbhrvi9dxKGobdyDyBLGcptAtxx9SANhLrKw=";
};
makefile = "LINUX/Makefile";
makeFlags = [
"PREFIX=${placeholder "out"}"
"ETCDIR=${placeholder "out"}/etc"
"UDEVRULESDIR=${placeholder "out"}/etc/udev/rules.d/"
"LDCONFIG=true"
];
installTargets = "install-all";
nativeBuildInputs = [
cc65
pkg-config
];
buildInputs = [
libusb1
ncurses
];
meta = with lib; {
description = "Kernel driver and development library to control serial CBM devices";
longDescription = ''
Win 7/8/10, and Linux/i386/AMD64 kernel driver and development library to
control serial CBM devices, such as the Commodore 1541 disk drive,
connected to the PC's parallel port via a XM1541 or XA1541 cable. Fast
disk copier included. Successor of cbm4linux. Also supports the XU1541
and the XUM1541 devices (a.k.a. "ZoomFloppy").
'';
homepage = "https://spiro.trikaliotis.net/opencbm";
license = licenses.gpl2Plus;
platforms = platforms.linux;
maintainers = [ maintainers.sander ];
};
}