about summary refs log tree commit diff
path: root/pkgs/tools/misc/opencbm
diff options
context:
space:
mode:
authorSander van der Burg <svanderburg@gmail.com>2021-12-19 18:30:31 +0100
committerSander van der Burg <svanderburg@gmail.com>2021-12-19 19:25:01 +0100
commitd7781bebeec39991123fe11e4bf36f52f23636bc (patch)
treeb4e8611c886e8157156872b913a33b69c7cbbcc3 /pkgs/tools/misc/opencbm
parentb4732d145d5a3b71524ae22f040b85222d0b81b6 (diff)
opencbm: init at 0.4.99.103
Diffstat (limited to 'pkgs/tools/misc/opencbm')
-rw-r--r--pkgs/tools/misc/opencbm/default.nix52
1 files changed, 52 insertions, 0 deletions
diff --git a/pkgs/tools/misc/opencbm/default.nix b/pkgs/tools/misc/opencbm/default.nix
new file mode 100644
index 0000000000000..2512747e74aae
--- /dev/null
+++ b/pkgs/tools/misc/opencbm/default.nix
@@ -0,0 +1,52 @@
+{ lib
+, stdenv
+, fetchFromGitHub
+, cc65
+, ncurses
+, pkg-config
+, libusb1
+}:
+
+stdenv.mkDerivation rec {
+  pname = "opencbm";
+  version = "0.4.99.103";
+
+  src = fetchFromGitHub {
+    owner = "OpenCBM";
+    repo = "OpenCBM";
+    rev = "v${version}";
+    sha256 = "06844yfgcbbwrp3iz5k8zd1zjawzbpvl131lgmkwz6d542c2k4k9";
+  };
+
+  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").
+    '';
+    license = licenses.gpl2;
+    platforms = platforms.linux;
+    maintainers = [ maintainers.sander ];
+  };
+}