Unverified Commit 421ef9a2 authored by Franz Pletz's avatar Franz Pletz Committed by GitHub
Browse files

Migrate packages to pkgs/by-name, format with nixfmt-rfc-style (#342625)

parents 4b87f882 560d82a6
Loading
Loading
Loading
Loading
+28 −24
Original line number Diff line number Diff line
{ lib
, stdenv
, fetchFromGitLab
, openldap
, libkrb5
, libxslt
, autoreconfHook
, pkg-config
, cyrus_sasl
, util-linux
, xmlto
, docbook_xsl
, docbook_xml_dtd_43
{
  lib,
  stdenv,
  autoreconfHook,
  cyrus_sasl,
  docbook_xml_dtd_43,
  docbook_xsl,
  fetchFromGitLab,
  libkrb5,
  libxslt,
  openldap,
  pkg-config,
  util-linux,
  xmlto,
}:

stdenv.mkDerivation rec {
@@ -20,39 +21,39 @@ stdenv.mkDerivation rec {
  src = fetchFromGitLab {
    domain = "gitlab.freedesktop.org";
    owner = "realmd";
    repo = pname;
    repo = "adcli";
    rev = version;
    sha256 = "sha256-dipNKlIdc1DpXLg/YJjUxZlNoMFy+rt8Y/+AfWFA4dE=";
    hash = "sha256-dipNKlIdc1DpXLg/YJjUxZlNoMFy+rt8Y/+AfWFA4dE=";
  };

  nativeBuildInputs = [
    autoreconfHook
    pkg-config
    docbook_xsl
    pkg-config
    util-linux
    xmlto
  ];

  buildInputs = [
    openldap
    cyrus_sasl
    libkrb5
    libxslt
    cyrus_sasl
    openldap
  ];

  configureFlags = [ "--disable-debug" ];

  postPatch = ''
    substituteInPlace tools/Makefile.am \
      --replace 'sbin_PROGRAMS' 'bin_PROGRAMS'
      --replace-fail 'sbin_PROGRAMS' 'bin_PROGRAMS'

    substituteInPlace doc/Makefile.am \
        --replace 'http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl' \
      --replace-fail 'http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl' \
                     '${docbook_xsl}/xml/xsl/docbook/manpages/docbook.xsl'

    function patch_docbook() {
      substituteInPlace $1 \
        --replace "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" \
        --replace-fail "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" \
                       "${docbook_xml_dtd_43}/xml/dtd/docbook/docbookx.dtd"
    }
    patch_docbook doc/adcli.xml
@@ -65,7 +66,10 @@ stdenv.mkDerivation rec {
    description = "Helper library and tools for Active Directory client operations";
    mainProgram = "adcli";
    license = licenses.lgpl21Only;
    maintainers = with maintainers; [ SohamG anthonyroussel ];
    maintainers = with maintainers; [
      SohamG
      anthonyroussel
    ];
    platforms = platforms.linux;
  };
}
+29 −21
Original line number Diff line number Diff line
{ stdenv
, lib
, fetchFromGitHub
, bash
, python3
, installShellFiles
, gawk
, curl
{
  stdenv,
  lib,
  bash,
  curl,
  fetchFromGitHub,
  gawk,
  installShellFiles,
  python3,
}:

stdenv.mkDerivation rec {
@@ -19,20 +20,23 @@ stdenv.mkDerivation rec {
    hash = "sha256-plTBh2LAXkYVSxN0IZJQuPr7QxD7+OAqHl/Zl8JPCmg=";
  };

  outputs = [ "out" "man" ];
  outputs = [
    "out"
    "man"
  ];

  strictDeps = true;

  nativeBuildInputs = [
    installShellFiles
  ];

  buildInputs = [
    bash
    python3
  ];

  nativeBuildInputs = [
    installShellFiles
  ];

  installPhase = ''
  postInstall = ''
    install -Dm755 -t $out/bin/ ebsnvme-id
    install -Dm755 -t $out/bin/ ec2-metadata
    install -Dm755 -t $out/bin/ ec2nvme-nsid
@@ -48,14 +52,14 @@ stdenv.mkDerivation rec {
  '';

  postFixup = ''
    for i in $out/etc/udev/rules.d/*.rules $out/lib/udev/rules.d/*.rules ; do
      substituteInPlace "$i" \
        --replace '/usr/sbin' "$out/bin" \
        --replace '/bin/awk' '${gawk}/bin/awk'
    done
    substituteInPlace $out/lib/udev/rules.d/{51-ec2-hvm-devices,70-ec2-nvme-devices}.rules \
      --replace-fail '/usr/sbin' "$out/bin"

    substituteInPlace $out/lib/udev/rules.d/53-ec2-read-ahead-kb.rules \
      --replace-fail '/bin/awk' '${gawk}/bin/awk'

    substituteInPlace "$out/bin/ec2-metadata" \
      --replace 'curl' '${curl}/bin/curl'
      --replace-fail 'curl' '${curl}/bin/curl'
  '';

  doInstallCheck = true;
@@ -73,6 +77,10 @@ stdenv.mkDerivation rec {
    description = "Contains a set of utilities and settings for Linux deployments in EC2";
    homepage = "https://github.com/amazonlinux/amazon-ec2-utils";
    license = licenses.mit;
    maintainers = with maintainers; [ ketzacoatl thefloweringash anthonyroussel ];
    maintainers = with maintainers; [
      ketzacoatl
      thefloweringash
      anthonyroussel
    ];
  };
}
+12 −1
Original line number Diff line number Diff line
{ lib, buildGoModule, fetchFromGitHub }:
{
  lib,
  asouldocs,
  buildGoModule,
  fetchFromGitHub,
  testers,
}:

buildGoModule rec {
  pname = "asouldocs";
@@ -13,6 +19,11 @@ buildGoModule rec {

  vendorHash = "sha256-T/KLiSK6bxXGkmVJ5aGrfHTUfLs/ElGyWSoCL5kb/KU=";

  passthru.tests.version = testers.testVersion {
    package = asouldocs;
    command = "asouldocs --version";
  };

  meta = with lib; {
    description = "Web server for multi-language, real-time synchronization and searchable documentation";
    homepage = "https://asouldocs.dev/";
+12 −8
Original line number Diff line number Diff line
{ lib
, python3
, fetchPypi
, nix-update-script
, testers
, aws-encryption-sdk-cli
{
  lib,
  aws-encryption-sdk-cli,
  fetchPypi,
  nix-update-script,
  python3,
  testers,
}:

let
@@ -41,8 +42,8 @@ localPython.pkgs.buildPythonApplication rec {
    attrs
    aws-encryption-sdk
    base64io
    urllib3
    setuptools # for pkg_resources
    urllib3
  ];

  doCheck = true;
@@ -59,7 +60,10 @@ localPython.pkgs.buildPythonApplication rec {
  ];

  # Upstream did not adapt to pytest 8 yet.
  pytestFlagsArray = [ "-W" "ignore::pytest.PytestRemovedIn8Warning" ];
  pytestFlagsArray = [
    "-W"
    "ignore::pytest.PytestRemovedIn8Warning"
  ];

  passthru = {
    updateScript = nix-update-script { };
+2 −2
Original line number Diff line number Diff line
{
  lib,
  stdenvNoCC,
  fetchurl,
  ant,
  fetchurl,
  jdk,
  nixosTests,
  stripJavaArchivesHook,
  unzip,
  nixosTests,
}:

stdenvNoCC.mkDerivation (finalAttrs: {
Loading