Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 23.05 34 lines 720 B view raw
1{ lib, stdenv, fetchFromGitHub }: 2 3stdenv.mkDerivation rec { 4 pname = "dasm"; 5 version = "2.20.14.1"; 6 7 src = fetchFromGitHub { 8 owner = "dasm-assembler"; 9 repo = "dasm"; 10 rev = version; 11 sha256 = "1bna0bj503xyn5inwzzsrsgi9qg8p20by4dfk7azj91ynw56pl41"; 12 }; 13 14 configurePhase = false; 15 installPhase = '' 16 mkdir -p $out/bin 17 install bin/* $out/bin 18 ''; 19 20 preCheck = '' 21 patchShebangs ./test/ 22 ''; 23 24 checkTarget = "test"; 25 doCheck = true; 26 27 meta = with lib; { 28 description = "Assembler for 6502 and other 8-bit microprocessors"; 29 homepage = "https://dasm-assembler.github.io"; 30 license = licenses.gpl2; 31 maintainers = [ maintainers.jwatt ]; 32 platforms = platforms.all; 33 }; 34}