default.nix (649B)
1 { 2 lib, 3 stdenv, 4 fetchFromSourcehut, 5 qbe, 6 }: 7 8 stdenv.mkDerivation (finalAttrs: { 9 pname = "cproc"; 10 version = "0-unstable-2025-02-11"; 11 12 src = fetchFromSourcehut { 13 owner = "~mcf"; 14 repo = "cproc"; 15 rev = "a2ddee1be68e76a1ac7f83b55732be8e54fe08c4"; 16 hash = "sha256-mQw2lTr/e8f778r69h7w+xg9IqO3UO1FJi6x8H1SbQ4="; 17 }; 18 19 buildInputs = [ qbe ]; 20 21 doCheck = true; 22 23 meta = { 24 description = "C11 compiler using QBE as a backend"; 25 homepage = "https://sr.ht/~mcf/cproc"; 26 license = lib.licenses.isc; 27 maintainers = [ lib.maintainers.sikmir ]; 28 platforms = lib.platforms.linux; 29 skip.ci = stdenv.isDarwin; 30 }; 31 })