nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at netboot-syslinux-multiplatform 35 lines 951 B view raw
1{ lib, stdenv, fetchurl, pkg-config, gtk, openssl }: 2 3stdenv.mkDerivation rec { 4 pname = "macopix"; 5 version = "1.7.4"; 6 7 src = fetchurl { 8 url = "http://rosegray.sakura.ne.jp/macopix/macopix-${version}.tar.bz2"; 9 sha256 = "0sgnr0wrw3hglcnsyvipll7icfv69ssmyw584zfhk1rgramlkzyb"; 10 }; 11 12 nativeBuildInputs = [ pkg-config ]; 13 buildInputs = [ gtk openssl ]; 14 15 preConfigure = '' 16 # Build fails on Linux with windres. 17 export ac_cv_prog_WINDRES= 18 ''; 19 20 enableParallelBuilding = true; 21 22 # Workaround build failure on -fno-common toolchains: 23 # ld: dnd.o:src/main.h:136: multiple definition of 24 # `MENU_EXT'; main.o:src/main.h:136: first defined here 25 env.NIX_CFLAGS_COMPILE = "-fcommon"; 26 27 NIX_LDFLAGS = "-lX11"; 28 29 meta = { 30 description = "Mascot Constructive Pilot for X"; 31 homepage = "http://rosegray.sakura.ne.jp/macopix/index-e.html"; 32 license = lib.licenses.gpl2Plus; 33 platforms = lib.platforms.linux; 34 }; 35}