mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-09 14:33:22 +00:00
a38bfa7f82
Co-authored-by: Aleksana <alexander.huang.y@gmail.com> Co-authored-by: Cosima Neidahl <opna2608@protonmail.com>
41 lines
855 B
Nix
41 lines
855 B
Nix
{ 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;
|
|
};
|
|
})
|