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