default.nix (931B)
1 { 2 lib, 3 stdenv, 4 fetchgit, 5 qbe, 6 }: 7 8 stdenv.mkDerivation { 9 pname = "scc"; 10 version = "0-unstable-2024-02-11"; 11 12 src = fetchgit { 13 url = "git://git.simple-cc.org/scc"; 14 rev = "527601ad4c29e586f0ce307353583c5c09f3c321"; 15 sha256 = "sha256-tog3LCUQwjNb8ZIoztmnKNL8mo/9ik9NXNJLQmAPltA="; 16 fetchSubmodules = true; 17 }; 18 19 postPatch = '' 20 substituteInPlace src/cmd/Makefile \ 21 --replace-fail "git submodule" "#git submodule" 22 ''; 23 24 #buildInputs = [ qbe ]; 25 26 makeFlags = [ 27 "PREFIX=$(out)" 28 "AR:=$(AR)" 29 "AS:=$(AS)" 30 "CC:=$(CC)" 31 "RANLIB:=$(RANLIB)" 32 "HOSTCC=${stdenv.cc.targetPrefix}cc" 33 ]; 34 35 #doCheck = true; 36 checkTarget = "tests"; 37 38 meta = { 39 description = "Simple c99 compiler"; 40 homepage = "https://www.simple-cc.org/"; 41 license = lib.licenses.isc; 42 maintainers = [ lib.maintainers.sikmir ]; 43 platforms = lib.platforms.linux; 44 skip.ci = stdenv.isDarwin; 45 }; 46 }