nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at devShellTools-shell 56 lines 1.5 kB view raw
1{ 2 lib, 3 gccStdenv, 4 fetchurl, 5 fetchpatch, 6 zlib, 7 ncurses, 8}: 9 10let 11 stdenv = gccStdenv; 12in 13stdenv.mkDerivation rec { 14 pname = "aewan"; 15 version = "1.0.01"; 16 17 src = fetchurl { 18 url = "mirror://sourceforge/aewan/${pname}-${version}.tar.gz"; 19 sha256 = "5266dec5e185e530b792522821c97dfa5f9e3892d0dca5e881d0c30ceac21817"; 20 }; 21 22 patches = [ 23 # Pull patch pending upstream inclusion: 24 # https://sourceforge.net/p/aewan/bugs/13/ 25 (fetchpatch { 26 url = "https://sourceforge.net/p/aewan/bugs/13/attachment/aewan-cvs-ncurses-6.3.patch"; 27 sha256 = "0pgpk1l3d6d5y37lvvavipwnmv9gmpfdy21jkz6baxhlkgf43r4p"; 28 # patch is in CVS diff format, add 'a/' prefix 29 extraPrefix = ""; 30 }) 31 # https://sourceforge.net/p/aewan/bugs/14/ 32 (fetchpatch { 33 url = "https://sourceforge.net/p/aewan/bugs/14/attachment/aewan-1.0.01-fix-incompatible-function-pointer-types.patch"; 34 sha256 = "sha256-NlnsOe/OCMXCrehBq20e0KOMcWt5rUv9fIvu9eoOMqw="; 35 }) 36 # https://sourceforge.net/p/aewan/bugs/16/ 37 (fetchpatch { 38 url = "https://sourceforge.net/p/aewan/bugs/16/attachment/implicit-function-declaration.patch"; 39 sha256 = "sha256-RWFJRDaYoiQySkB2L09JHSX90zgIJ9q16IrPhg03Ruc="; 40 # patch is in CVS diff format, add 'a/' prefix 41 extraPrefix = ""; 42 }) 43 ]; 44 45 buildInputs = [ 46 zlib 47 ncurses 48 ]; 49 50 meta = { 51 description = "Ascii-art Editor Without A Name"; 52 homepage = "https://aewan.sourceforge.net/"; 53 license = lib.licenses.gpl2Plus; 54 platforms = lib.platforms.unix; 55 }; 56}