Unverified Commit 48ce9683 authored by github-actions[bot]'s avatar github-actions[bot] Committed by GitHub
Browse files

Merge staging-next into staging

parents 24120bc8 5b4db4db
Loading
Loading
Loading
Loading
+114 −12
Original line number Diff line number Diff line
@@ -1764,6 +1764,7 @@ rec {
  /**
    Get a package output.
    If no output is found, fallback to `.out` and then to the default.
    The function is idempotent: `getOutput "b" (getOutput "a" p) == getOutput "a" p`.


    # Inputs
@@ -1779,7 +1780,7 @@ rec {
    # Type

    ```
    getOutput :: String -> Derivation -> String
    getOutput :: String -> :: Derivation -> Derivation
    ```

    # Examples
@@ -1787,7 +1788,7 @@ rec {
    ## `lib.attrsets.getOutput` usage example

    ```nix
    getOutput "dev" pkgs.openssl
    "${getOutput "dev" pkgs.openssl}"
    => "/nix/store/9rz8gxhzf8sw4kf2j2f1grr49w8zx5vj-openssl-1.0.1r-dev"
    ```

@@ -1798,6 +1799,49 @@ rec {
      then pkg.${output} or pkg.out or pkg
      else pkg;

  /**
    Get the first of the `outputs` provided by the package, or the default.
    This function is alligned with `_overrideFirst()` from the `multiple-outputs.sh` setup hook.
    Like `getOutput`, the function is idempotent.

    # Inputs

    `outputs`

    : 1\. Function argument

    `pkg`

    : 2\. Function argument

    # Type

    ```
    getFirstOutput :: [String] -> Derivation -> Derivation
    ```

    # Examples
    :::{.example}
    ## `lib.attrsets.getFirstOutput` usage example

    ```nix
    "${getFirstOutput [ "include" "dev" ] pkgs.openssl}"
    => "/nix/store/00000000000000000000000000000000-openssl-1.0.1r-dev"
    ```

    :::
  */
  getFirstOutput =
    candidates: pkg:
    let
      outputs = builtins.filter (name: hasAttr name pkg) candidates;
      output = builtins.head outputs;
    in
    if pkg.outputSpecified or false || outputs == [ ] then
      pkg
    else
      pkg.${output};

  /**
    Get a package's `bin` output.
    If the output does not exist, fallback to `.out` and then to the default.
@@ -1811,7 +1855,7 @@ rec {
    # Type

    ```
    getBin :: Derivation -> String
    getBin :: Derivation -> Derivation
    ```

    # Examples
@@ -1819,8 +1863,8 @@ rec {
    ## `lib.attrsets.getBin` usage example

    ```nix
    getBin pkgs.openssl
    => "/nix/store/9rz8gxhzf8sw4kf2j2f1grr49w8zx5vj-openssl-1.0.1r"
    "${getBin pkgs.openssl}"
    => "/nix/store/00000000000000000000000000000000-openssl-1.0.1r"
    ```

    :::
@@ -1841,7 +1885,7 @@ rec {
    # Type

    ```
    getLib :: Derivation -> String
    getLib :: Derivation -> Derivation
    ```

    # Examples
@@ -1849,7 +1893,7 @@ rec {
    ## `lib.attrsets.getLib` usage example

    ```nix
    getLib pkgs.openssl
    "${getLib pkgs.openssl}"
    => "/nix/store/9rz8gxhzf8sw4kf2j2f1grr49w8zx5vj-openssl-1.0.1r-lib"
    ```

@@ -1857,6 +1901,35 @@ rec {
  */
  getLib = getOutput "lib";

  /**
    Get a package's `static` output.
    If the output does not exist, fallback to `.lib`, then to `.out`, and then to the default.

    # Inputs

    `pkg`

    : The package whose `static` output will be retrieved.

    # Type

    ```
    getStatic :: Derivation -> Derivation
    ```

    # Examples
    :::{.example}
    ## `lib.attrsets.getStatic` usage example

    ```nix
    "${lib.getStatic pkgs.glibc}"
    => "/nix/store/00000000000000000000000000000000-glibc-2.39-52-static"
    ```

    :::
  */
  getStatic = getFirstOutput [ "static" "lib" "out" ];


  /**
    Get a package's `dev` output.
@@ -1871,7 +1944,7 @@ rec {
    # Type

    ```
    getDev :: Derivation -> String
    getDev :: Derivation -> Derivation
    ```

    # Examples
@@ -1879,7 +1952,7 @@ rec {
    ## `lib.attrsets.getDev` usage example

    ```nix
    getDev pkgs.openssl
    "${getDev pkgs.openssl}"
    => "/nix/store/9rz8gxhzf8sw4kf2j2f1grr49w8zx5vj-openssl-1.0.1r-dev"
    ```

@@ -1887,6 +1960,35 @@ rec {
  */
  getDev = getOutput "dev";

  /**
    Get a package's `include` output.
    If the output does not exist, fallback to `.dev`, then to `.out`, and then to the default.

    # Inputs

    `pkg`

    : The package whose `include` output will be retrieved.

    # Type

    ```
    getInclude :: Derivation -> Derivation
    ```

    # Examples
    :::{.example}
    ## `lib.attrsets.getInclude` usage example

    ```nix
    "${getInclude pkgs.openssl}"
    => "/nix/store/00000000000000000000000000000000-openssl-1.0.1r-dev"
    ```

    :::
  */
  getInclude = getFirstOutput [ "include" "dev" "out" ];


  /**
    Get a package's `man` output.
@@ -1901,7 +2003,7 @@ rec {
    # Type

    ```
    getMan :: Derivation -> String
    getMan :: Derivation -> Derivation
    ```

    # Examples
@@ -1909,7 +2011,7 @@ rec {
    ## `lib.attrsets.getMan` usage example

    ```nix
    getMan pkgs.openssl
    "${getMan pkgs.openssl}"
    => "/nix/store/9rz8gxhzf8sw4kf2j2f1grr49w8zx5vj-openssl-1.0.1r-man"
    ```

@@ -1929,7 +2031,7 @@ rec {
    # Type

    ```
    chooseDevOutputs :: [Derivation] -> [String]
    chooseDevOutputs :: [Derivation] -> [Derivation]
    ```
  */
  chooseDevOutputs = builtins.map getDev;
+2 −2
Original line number Diff line number Diff line
@@ -86,8 +86,8 @@ let
      mapAttrs' mapAttrsToList attrsToList concatMapAttrs mapAttrsRecursive
      mapAttrsRecursiveCond genAttrs isDerivation toDerivation optionalAttrs
      zipAttrsWithNames zipAttrsWith zipAttrs recursiveUpdateUntil
      recursiveUpdate matchAttrs mergeAttrsList overrideExisting showAttrPath getOutput
      getBin getLib getDev getMan chooseDevOutputs zipWithNames zip
      recursiveUpdate matchAttrs mergeAttrsList overrideExisting showAttrPath getOutput getFirstOutput
      getBin getLib getStatic getDev getInclude getMan chooseDevOutputs zipWithNames zip
      recurseIntoAttrs dontRecurseIntoAttrs cartesianProduct cartesianProductOfSets
      mapCartesianProduct updateManyAttrsByPath listToAttrs hasAttr getAttr isAttrs intersectAttrs removeAttrs;
    inherit (self.lists) singleton forEach map foldr fold foldl foldl' imap0 imap1
+13 −0
Original line number Diff line number Diff line
@@ -14536,6 +14536,13 @@
    githubId = 6391776;
    name = "Nikita Voloboev";
  };
  niklashh = {
    email = "niklas.2.halonen@aalto.fi";
    github = "xhalo32";
    githubId = 15152190;
    keys = [ { fingerprint = "AF3B 80CD A027 245B 51FC  6D9B E83A 373D A5AF 5068"; } ];
    name = "Niklas Halonen";
  };
  niklaskorz = {
    name = "Niklas Korz";
    email = "niklas@niklaskorz.de";
@@ -19477,6 +19484,12 @@
    githubId = 48666;
    name = "Matthew \"strager\" Glazar";
  };
  strawbee = {
    email = "henigingames@gmail.com";
    github = "StillToad";
    githubId = 57422776;
    name = "strawbee";
  };
  strikerlulu = {
    email = "strikerlulu7@gmail.com";
    github = "strikerlulu";
+3 −1
Original line number Diff line number Diff line
@@ -62,7 +62,9 @@ stdenv.mkDerivation {
  ];

  # 'g_memdup' is deprecated: Use 'g_memdup2' instead
  env.NIX_CFLAGS_COMPILE = "-Wno-error=deprecated-declarations";
  env.NIX_CFLAGS_COMPILE = "-Wno-error=deprecated-declarations"
    # Suppress incompatible function pointer error in clang due to libxml2 2.12 const changes
    + lib.optionalString stdenv.cc.isClang " -Wno-error=incompatible-function-pointer-types";

  meta = with lib; {
    description = "Buzztrax is a modular music composer for Linux";
+7 −2
Original line number Diff line number Diff line
{
  lib,
  melpaBuild,
  fetchFromGitHub,
  pkg-config,
  libffi,
  melpaBuild,
  pkg-config,
  unstableGitUpdater,
}:

melpaBuild {
@@ -26,7 +27,10 @@ melpaBuild {
    make
  '';

  passthru.updateScript = unstableGitUpdater { };

  meta = {
    homepage = "https://github.com/skeeto/elisp-ffi";
    description = "Emacs Lisp Foreign Function Interface";
    longDescription = ''
      This library provides an FFI for Emacs Lisp so that Emacs
@@ -35,5 +39,6 @@ melpaBuild {
      values on to Emacs.
    '';
    license = lib.licenses.unlicense;
    maintainers = with lib.maintainers; [ AndersonTorres ];
  };
}
Loading