lol

Merge pull request #307966 from donovanglover/picoc

picoc: 2015-05-04 -> 2.1-unstable-2018-06-05

authored by

Weijia Wang and committed by
GitHub
b8f09609 bca2c03f

+16 -13
+16 -13
pkgs/development/interpreters/picoc/default.nix
··· 1 - { lib, stdenv, fetchFromGitHub, readline }: 1 + { lib, stdenv, fetchFromGitLab, readline }: 2 2 3 - stdenv.mkDerivation rec { 3 + stdenv.mkDerivation { 4 4 pname = "picoc"; 5 - version = "2015-05-04"; 5 + version = "2.1-unstable-2018-06-05"; 6 6 7 - src = fetchFromGitHub { 8 - sha256 = "01w3jwl0vn9fsmh7p20ad4nl9ljzgfn576yvncd9pk9frx3pd8y4"; 9 - rev = "4555e8456f020554bcac50751fbb9b36c7d8c13b"; 7 + src = fetchFromGitLab { 8 + owner = "zsaleeba"; 10 9 repo = "picoc"; 11 - owner = "zsaleeba"; 10 + rev = "dc85a51e9211cfb644f0a85ea9546e15dc1141c3"; 11 + hash = "sha256-yWPRbJLT09E7pqqs9E2k48ECoRR2nhcgTgK5pumkrxo="; 12 12 }; 13 13 14 14 buildInputs = [ readline ]; 15 15 16 16 makeFlags = [ "CC=${stdenv.cc.targetPrefix}cc" ]; 17 17 18 - postPatch = '' 19 - substituteInPlace Makefile --replace '`svnversion -n`' "${version}" 20 - ''; 18 + env.NIX_CFLAGS_COMPILE = toString (lib.optionals stdenv.isDarwin [ 19 + "-Wno-error=implicit-function-declaration" 20 + ]); 21 21 22 22 enableParallelBuilding = true; 23 23 24 24 # Tests are currently broken on i686 see 25 25 # https://hydra.nixos.org/build/24003763/nixlog/1 26 - doCheck = if stdenv.isi686 then false else true; 26 + doCheck = !stdenv.isi686 && !stdenv.isAarch64; 27 27 checkTarget = "test"; 28 28 29 29 installPhase = '' 30 + runHook preInstall 31 + 30 32 install -Dm755 picoc $out/bin/picoc 31 33 32 34 mkdir -p $out/include 33 35 install -m644 *.h $out/include 36 + 37 + runHook postInstall 34 38 ''; 35 39 36 40 meta = with lib; { 37 - broken = (stdenv.isLinux && stdenv.isAarch64); 38 41 description = "Very small C interpreter for scripting"; 39 42 mainProgram = "picoc"; 40 43 longDescription = '' ··· 47 50 very sparing of data space. This means it can work well in small embedded 48 51 devices. 49 52 ''; 50 - homepage = "https://github.com/zsaleeba/picoc"; 53 + homepage = "https://gitlab.com/zsaleeba/picoc"; 51 54 downloadPage = "https://code.google.com/p/picoc/downloads/list"; 52 55 license = licenses.bsd3; 53 56 platforms = platforms.unix;