From a38bfa7f826aaa210fe1563ca71f516eec8c4b21 Mon Sep 17 00:00:00 2001 From: matthewcroughan Date: Mon, 26 Feb 2024 04:07:55 +0000 Subject: [PATCH] cc1541: init at 4.1 Co-authored-by: Aleksana Co-authored-by: Cosima Neidahl --- pkgs/by-name/cc/cc1541/package.nix | 40 ++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 pkgs/by-name/cc/cc1541/package.nix diff --git a/pkgs/by-name/cc/cc1541/package.nix b/pkgs/by-name/cc/cc1541/package.nix new file mode 100644 index 000000000000..f0f5fd7a02ca --- /dev/null +++ b/pkgs/by-name/cc/cc1541/package.nix @@ -0,0 +1,40 @@ +{ lib +, stdenv +, fetchFromBitbucket +, asciidoc +}: + +stdenv.mkDerivation (finalAttrs: { + pname = "cc1541"; + version = "4.1"; + + src = fetchFromBitbucket { + owner = "ptv_claus"; + repo = "cc1541"; + rev = finalAttrs.version; + hash = "sha256-b8cEGC3WxrjebQjed/VD9SIWkiQpNaE2yW+bQRCtmSs="; + }; + + env.ENABLE_MAN = 1; + + makeFlags = [ "prefix=$(out)" ]; + + nativeBuildInputs = [ asciidoc ]; + + doInstallCheck = true; + + installCheckPhase = '' + runHook preCheck + make test + runHook postCheck + ''; + + meta = with lib; { + description = "Tool for creating Commodore 1541 Floppy disk images in D64, D71 or D81 format"; + homepage = "https://bitbucket.org/ptv_claus/cc1541/src/master/"; + license = licenses.mit; + maintainers = with maintainers; [ matthewcroughan ]; + mainProgram = "cc1541"; + platforms = platforms.all; + }; +})