Skip to content

Commit

Permalink
cc1541: init at 4.1
Browse files Browse the repository at this point in the history
Co-authored-by: Aleksana <alexander.huang.y@gmail.com>
Co-authored-by: Cosima Neidahl <opna2608@protonmail.com>
  • Loading branch information
3 people committed Apr 11, 2024
1 parent af810fc commit a38bfa7
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions pkgs/by-name/cc/cc1541/package.nix
Original file line number Diff line number Diff line change
@@ -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;
};
})

0 comments on commit a38bfa7

Please sign in to comment.