diff options
author | Alyssa Ross <hi@alyssa.is> | 2022-01-03 23:55:00 +0000 |
---|---|---|
committer | Alyssa Ross <hi@alyssa.is> | 2022-02-19 11:03:39 +0000 |
commit | f4cf97a04cd5d0b86aa46baec9fb228a8f671c03 (patch) | |
tree | 28192415ff39a661d0001563bf81cc93fa25d16d /nixpkgs/pkgs/development/libraries/libbutl | |
parent | f8422837c9bde058e8f2de37702e7e94b2226040 (diff) | |
parent | 18c84ea816348e2a098390101b92d1e39a9dbd45 (diff) | |
download | nixlib-f4cf97a04cd5d0b86aa46baec9fb228a8f671c03.tar nixlib-f4cf97a04cd5d0b86aa46baec9fb228a8f671c03.tar.gz nixlib-f4cf97a04cd5d0b86aa46baec9fb228a8f671c03.tar.bz2 nixlib-f4cf97a04cd5d0b86aa46baec9fb228a8f671c03.tar.lz nixlib-f4cf97a04cd5d0b86aa46baec9fb228a8f671c03.tar.xz nixlib-f4cf97a04cd5d0b86aa46baec9fb228a8f671c03.tar.zst nixlib-f4cf97a04cd5d0b86aa46baec9fb228a8f671c03.zip |
Merge commit '18c84ea816348e2a098390101b92d1e39a9dbd45'
Conflicts: nixpkgs/nixos/modules/misc/documentation.nix nixpkgs/pkgs/applications/networking/browsers/firefox/packages.nix nixpkgs/pkgs/applications/window-managers/sway/default.nix nixpkgs/pkgs/build-support/rust/build-rust-package/default.nix nixpkgs/pkgs/development/go-modules/generic/default.nix nixpkgs/pkgs/development/interpreters/ruby/default.nix nixpkgs/pkgs/development/interpreters/ruby/patchsets.nix nixpkgs/pkgs/development/libraries/boehm-gc/7.6.6.nix nixpkgs/pkgs/development/python-modules/django-mailman3/default.nix nixpkgs/pkgs/servers/mail/mailman/web.nix nixpkgs/pkgs/top-level/aliases.nix nixpkgs/pkgs/top-level/all-packages.nix nixpkgs/pkgs/top-level/impure.nix
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/libbutl')
-rw-r--r-- | nixpkgs/pkgs/development/libraries/libbutl/default.nix | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/libraries/libbutl/default.nix b/nixpkgs/pkgs/development/libraries/libbutl/default.nix new file mode 100644 index 000000000000..55aacf160f37 --- /dev/null +++ b/nixpkgs/pkgs/development/libraries/libbutl/default.nix @@ -0,0 +1,53 @@ +{ lib, stdenv +, build2 +, fetchurl +, libuuid +, enableShared ? !stdenv.hostPlatform.isStatic +, enableStatic ? !enableShared +}: + +stdenv.mkDerivation rec { + pname = "libbutl"; + version = "0.14.0"; + + outputs = [ "out" "dev" "doc" ]; + + src = fetchurl { + url = "https://pkg.cppget.org/1/alpha/build2/libbutl-${version}.tar.gz"; + sha256 = "sha256-zKufrUsLZmjw6pNbOAv+dPyolWpgXgygEnW0Lka6zw8="; + }; + + nativeBuildInputs = [ + build2 + ]; + + strictDeps = true; + + # Should be true for anything built with build2, + # but especially important when bootstrapping + disallowedReferences = [ build2 ]; + + postPatch = lib.optionalString stdenv.isLinux '' + substituteInPlace libbutl/uuid-linux.cxx \ + --replace '"libuuid.so' '"${lib.getLib libuuid}/lib/libuuid.so' + ''; + + build2ConfigureFlags = [ + "config.bin.lib=${build2.configSharedStatic enableShared enableStatic}" + ]; + + doCheck = true; + + meta = with lib; { + description = "build2 utility library"; + longDescription = '' + This library is a collection of utilities that are used throughout the + build2 toolchain. + ''; + homepage = "https://build2.org/"; + changelog = "https://git.build2.org/cgit/libbutl/log"; + license = licenses.mit; + maintainers = with maintainers; [ r-burns ]; + platforms = platforms.all; + }; +} |