~dblsaiko/nix-extras

992bba97ef041687c00ddfe7667d036973b77b25 — Marco Rebhan a month ago 2b9660d
nix-plugin-pijul: When using clang, use clang 17
1 files changed, 29 insertions(+), 23 deletions(-)

M packages/nix-plugin-pijul.nix
M packages/nix-plugin-pijul.nix => packages/nix-plugin-pijul.nix +29 -23
@@ 1,36 1,42 @@
{
  lib,
  stdenv,
  clang17Stdenv,
  fetchzip,
  cmake,
  pkg-config,
  boost,
  howard-hinnant-date,
  nix,
}:
stdenv.mkDerivation (self: {
  pname = "nix-plugin-pijul";
  version = "0.1.3";
}: let
  stdenv' =
    if stdenv.cc.isClang
    then clang17Stdenv
    else stdenv;
in
  stdenv'.mkDerivation (self: {
    pname = "nix-plugin-pijul";
    version = "0.1.3";

  src = fetchzip {
    url = "https://dblsaiko.net/pub/nix-plugin-pijul/nix-plugin-pijul-${self.version}.tar.gz";
    hash = "sha256-hg5B7PDWM9J3ZTkvSxMLvcsF3lK/uczhtiv10JhZcz0=";
  };
    src = fetchzip {
      url = "https://dblsaiko.net/pub/nix-plugin-pijul/nix-plugin-pijul-${self.version}.tar.gz";
      hash = "sha256-hg5B7PDWM9J3ZTkvSxMLvcsF3lK/uczhtiv10JhZcz0=";
    };

  nativeBuildInputs = [
    cmake
    pkg-config
  ];
    nativeBuildInputs = [
      cmake
      pkg-config
    ];

  buildInputs = [
    boost
    howard-hinnant-date
    nix
  ];
    buildInputs = [
      boost
      howard-hinnant-date
      nix
    ];

  meta = {
    description = "Plugin to add Pijul support to the Nix package manager";
    maintainers = [(import ../maintainer-info.nix)];
    platforms = lib.platforms.unix;
  };
})
    meta = {
      description = "Plugin to add Pijul support to the Nix package manager";
      maintainers = [(import ../maintainer-info.nix)];
      platforms = lib.platforms.unix;
    };
  })