bic: 1.0.0 -> 1.0.0-unstable-2022-02-16 (#406994)

This commit is contained in:
Yohann Boniface 2025-05-15 09:36:41 +02:00 committed by GitHub
commit 31f43a05c4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -5,44 +5,59 @@
readline, readline,
autoreconfHook, autoreconfHook,
autoconf-archive, autoconf-archive,
gcc,
gmp, gmp,
flex, flex,
bison, bison,
libffi,
makeWrapper,
pkg-config,
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "bic"; pname = "bic";
version = "1.0.0"; version = "1.0.0-unstable-2022-02-16";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "hexagonal-sun"; owner = "hexagonal-sun";
repo = "bic"; repo = "bic";
rev = "v${version}"; rev = "b224d2776fdfe84d02eb96a21880a9e4ceeb3065";
sha256 = "1ws46h1ngzk14dspmsggj9535yl04v9wh8v4gb234n34rdkdsyyw"; hash = "sha256-6na7/kCXhHN7utbvXvTWr3QG4YhDww9AkilyKf71HlM=";
}; };
buildInputs = [ buildInputs = [
readline readline
gcc
gmp gmp
]; ];
nativeBuildInputs = [ nativeBuildInputs = [
autoreconfHook autoreconfHook
autoconf-archive autoconf-archive
bison bison
flex flex
gcc
libffi
makeWrapper
pkg-config
]; ];
meta = with lib; { postInstall = ''
wrapProgram $out/bin/bic \
--prefix PATH : ${lib.makeBinPath [ gcc ]}
'';
meta = {
description = "C interpreter and API explorer"; description = "C interpreter and API explorer";
mainProgram = "bic"; mainProgram = "bic";
longDescription = '' longDescription = ''
bic This a project that allows developers to explore and test C-APIs using a bic This a project that allows developers to explore and test C-APIs using a
read eval print loop, also known as a REPL. read eval print loop, also known as a REPL.
''; '';
license = with licenses; [ gpl2Plus ]; license = with lib.licenses; [ gpl2Plus ];
homepage = "https://github.com/hexagonal-sun/bic"; homepage = "https://github.com/hexagonal-sun/bic";
platforms = platforms.unix; platforms = lib.platforms.unix;
maintainers = with maintainers; [ hexagonal-sun ]; maintainers = with lib.maintainers; [ hexagonal-sun ];
# never built on aarch64-darwin since first introduction in nixpkgs # never built on aarch64-darwin since first introduction in nixpkgs
broken = stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64; broken = stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64;
}; };