Unverified Commit 31f43a05 authored by Yohann Boniface's avatar Yohann Boniface Committed by GitHub
Browse files

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

parents 797e69f6 8c28996b
Loading
Loading
Loading
Loading
+22 −7
Original line number Diff line number Diff line
@@ -5,44 +5,59 @@
  readline,
  autoreconfHook,
  autoconf-archive,
  gcc,
  gmp,
  flex,
  bison,
  libffi,
  makeWrapper,
  pkg-config,
}:

stdenv.mkDerivation rec {
  pname = "bic";
  version = "1.0.0";
  version = "1.0.0-unstable-2022-02-16";

  src = fetchFromGitHub {
    owner = "hexagonal-sun";
    repo = "bic";
    rev = "v${version}";
    sha256 = "1ws46h1ngzk14dspmsggj9535yl04v9wh8v4gb234n34rdkdsyyw";
    rev = "b224d2776fdfe84d02eb96a21880a9e4ceeb3065";
    hash = "sha256-6na7/kCXhHN7utbvXvTWr3QG4YhDww9AkilyKf71HlM=";
  };

  buildInputs = [
    readline
    gcc
    gmp
  ];

  nativeBuildInputs = [
    autoreconfHook
    autoconf-archive
    bison
    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";
    mainProgram = "bic";
    longDescription = ''
      bic This a project that allows developers to explore and test C-APIs using a
      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";
    platforms = platforms.unix;
    maintainers = with maintainers; [ hexagonal-sun ];
    platforms = lib.platforms.unix;
    maintainers = with lib.maintainers; [ hexagonal-sun ];
    # never built on aarch64-darwin since first introduction in nixpkgs
    broken = stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64;
  };