nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at fix-function-merge 37 lines 718 B view raw
1{ lib 2, stdenv 3, fetchFromGitHub 4}: 5 6stdenv.mkDerivation rec { 7 pname = "tbox"; 8 version = "1.7.5"; 9 10 src = fetchFromGitHub { 11 owner = "tboox"; 12 repo = pname; 13 rev = "v${version}"; 14 hash = "sha256-VM6LOTVwM47caXYiH+6c7t174i0W5MY1dg2Y5yutlcc="; 15 }; 16 17 configureFlags = [ 18 "--hash=y" 19 "--charset=y" 20 "--float=y" 21 "--demo=n" 22 ]; 23 24 postInstall = '' 25 mkdir -p $out/lib/pkgconfig 26 substituteAll ${./libtbox.pc.in} $out/lib/pkgconfig/libtbox.pc 27 ''; 28 29 meta = with lib; { 30 description = "Glib-like multi-platform c library"; 31 homepage = "https://docs.tboox.org"; 32 license = licenses.asl20; 33 platforms = platforms.linux; 34 maintainers = with maintainers; [ rewine ]; 35 }; 36} 37