ma pkgs: stdenv.lib -> lib

This commit is contained in:
makefu 2021-12-04 21:24:48 +01:00
parent 4f500d5006
commit 7ca789f598
No known key found for this signature in database
GPG Key ID: 36F7711F3FC0F225
20 changed files with 60 additions and 59 deletions

View File

@ -1,4 +1,4 @@
{ stdenv, bundlerEnv, ruby, fetchFromGitHub, nodejs }:
{ stdenv, lib, bundlerEnv, ruby, fetchFromGitHub, nodejs }:
# nix-shell --command "bundler install && bundix" in the clone, copy gemset.nix, Gemfile and Gemfile.lock
let
gems = bundlerEnv {
@ -35,7 +35,7 @@ EOF
chmod +x $bin
'';
meta = with stdenv.lib; {
meta = with lib; {
homepage = https://beefproject.com/;
description = "The Browser Exploitation Framework";
platforms = platforms.linux;

View File

@ -1,4 +1,4 @@
{ pkgs, ... }:
{ pkgs, lib, ... }:
pkgs.python3Packages.buildPythonPackage rec {
name = "bintray-upload-${version}";
@ -14,6 +14,6 @@ pkgs.python3Packages.buildPythonPackage rec {
meta = {
description = "Simple BinTray utility for uploading packages";
license = pkgs.stdenv.lib.licenses.asl20;
license = lib.licenses.asl20;
};
}

View File

@ -1,8 +1,8 @@
{ stdenv, fetchurl, buildPackages, perl, fetchgit
{ stdenv, lib, fetchurl, buildPackages, perl, fetchgit
, hostPlatform
}:
with stdenv.lib;
with lib;
let
@ -70,8 +70,8 @@ let
meta = {
homepage = https://sourceforge.net/p/cmpforopenssl ;
description = "A cryptographic library that implements the SSL and TLS protocols";
platforms = stdenv.lib.platforms.all;
maintainers = [ stdenv.lib.maintainers.makefu ];
platforms = lib.platforms.all;
maintainers = [ lib.maintainers.makefu ];
priority = 0; # resolves collision with man-pages
};
};

View File

@ -1,4 +1,4 @@
{stdenv,alsaToolTarget,fetchurl, alsaLib, ncurses, fltk13, gtk3}:
{stdenv, lib, alsaToolTarget,fetchurl, alsaLib, ncurses, fltk13, gtk3}:
stdenv.mkDerivation rec {
name = "alsa-${alsaToolTarget}-${version}";
@ -20,7 +20,7 @@ stdenv.mkDerivation rec {
homepage = http://www.alsa-project.org/;
description = "ALSA tools - ${name}";
platforms = stdenv.lib.platforms.linux;
maintainers = [ stdenv.lib.maintainers.makefu ];
platforms = lib.platforms.linux;
maintainers = [ lib.maintainers.makefu ];
};
}

View File

@ -22,9 +22,9 @@ let
meta = {
description = "Content Manager Assistant for the PS Vita";
homepage = https://github.com/codestation/qcma;
license = stdenv.lib.licenses.gpl2;
platforms = stdenv.lib.platforms.linux;
maintainers = with stdenv.lib.maintainers; [ makefu ];
license = lib.licenses.gpl2;
platforms = lib.platforms.linux;
maintainers = with lib.maintainers; [ makefu ];
};
};
in stdenv.mkDerivation rec {
@ -50,8 +50,8 @@ in stdenv.mkDerivation rec {
meta = {
description = "Content Manager Assistant for the PS Vita";
homepage = https://github.com/codestation/qcma;
license = stdenv.lib.licenses.gpl2;
platforms = stdenv.lib.platforms.linux;
maintainers = with stdenv.lib.maintainers; [ makefu ];
license = lib.licenses.gpl2;
platforms = lib.platforms.linux;
maintainers = with lib.maintainers; [ makefu ];
};
}

View File

@ -1,4 +1,4 @@
{ stdenv, pkgs, fetchgit }:
{ stdenv, lib, pkgs, fetchgit }:
pkgs.perlPackages.buildPerlPackage rec {
pname = "debmirror";
@ -34,8 +34,8 @@ pkgs.perlPackages.buildPerlPackage rec {
meta = {
description = "mirror apt repos";
homepage = https://tracker.debian.org/pkg/debmirror;
license = stdenv.lib.licenses.gpl2;
platforms = stdenv.lib.platforms.linux;
maintainers = with stdenv.lib.maintainers; [ makefu ];
license = lib.licenses.gpl2;
platforms = lib.platforms.linux;
maintainers = with lib.maintainers; [ makefu ];
};
}

View File

@ -20,12 +20,12 @@ with super.lib; with builtins; let
(filterAttrs (_: eq "directory") (readDir path));
in {
quodlibet = super.pkgs.stdenv.lib.overrideDerivation super.quodlibet (old: {
quodlibet = super.pkgs.lib.overrideDerivation super.quodlibet (old: {
doCheck = false; # 1 error because of warnings (possibly upstream)
patches = [ ./custom/quodlibet/single-digit-discnumber.patch
./custom/quodlibet/remove-override-warning.patch ];
});
#rclone = super.pkgs.stdenv.lib.overrideDerivation super.rclone (old: {
#rclone = super.pkgs.lib.overrideDerivation super.rclone (old: {
# postInstall = old.postInstall + ''
# $out/bin/rclone genautocomplete zsh _rclone

View File

@ -1,5 +1,5 @@
{ pkgs ? import <nixpkgs> {} }:
with pkgs.stdenv.lib;
with pkgs.lib;
let
readme-renderer = pkgs.python3Packages.buildPythonPackage rec {

View File

@ -1,4 +1,4 @@
{ coreutils, makeWrapper, openssl, libcaca, qrencode, fetchFromGitHub, yubikey-manager, python, stdenv, ... }:
{ coreutils, makeWrapper, openssl, libcaca, qrencode, fetchFromGitHub, yubikey-manager, python, stdenv, lib, ... }:
stdenv.mkDerivation {
name = "gen-oath-safe-2017-06-30";
@ -19,7 +19,7 @@ stdenv.mkDerivation {
installPhase =
let
path = stdenv.lib.makeBinPath [
path = lib.makeBinPath [
coreutils
openssl
qrencode

View File

@ -1,4 +1,4 @@
{ stdenv, python3, fetchgit }:
{ stdenv, lib, python3, fetchgit }:
python3.pkgs.buildPythonPackage rec {
name = "kalauerbot";
rev = "f244b35";
@ -9,12 +9,12 @@ rev = "f244b35";
};
propagatedBuildInputs = with python3.pkgs;[
(callPackage ./python-matrixbot.nix {
matrix-client = (stdenv.lib.overrideDerivation matrix-client (self: {
matrix-client = (lib.overrideDerivation matrix-client (self: {
patches = [ ./badsync.patch ];
}));
})
(stdenv.lib.overrideDerivation googletrans (self: {
(lib.overrideDerivation googletrans (self: {
patches = [ ./translate.patch ];
}))
];

View File

@ -24,8 +24,8 @@ stdenv.mkDerivation rec {
meta = with lib; {
description = "logstash output plugin";
homepage = https://github.com/logstash-plugins/logstash-input-rss;
license = stdenv.lib.licenses.asl20;
platforms = stdenv.lib.platforms.unix;
license = lib.licenses.asl20;
platforms = lib.platforms.unix;
maintainers = with maintainers; [ makefu ];
};
}

View File

@ -25,8 +25,8 @@ stdenv.mkDerivation rec {
meta = with lib; {
description = "logstash output plugin";
homepage = https://github.com/logstash-plugins/logstash-output-exec;
license = stdenv.lib.licenses.asl20;
platforms = stdenv.lib.platforms.unix;
license = lib.licenses.asl20;
platforms = lib.platforms.unix;
maintainers = with maintainers; [ makefu ];
};
}

View File

@ -1,4 +1,4 @@
{ stdenv, fetchurl, pkgs }:
{ stdenv, lib, fetchurl, pkgs }:
# source: https://github.com/hyphon81/Nixtack/blob/master/noVNC/noVNC.nix
let
in
@ -11,7 +11,7 @@ stdenv.mkDerivation rec {
url = "https://github.com/novnc/noVNC/archive/v${version}.tar.gz";
sha256 = "16ygbdzdmnfg9a26d9il4a6fr16qmq0ix9imfbpzl0drfbj7z8kh";
};
p = stdenv.lib.makeBinPath [ pkgs.nettools pkgs.python27Packages.websockify
p = lib.makeBinPath [ pkgs.nettools pkgs.python27Packages.websockify
pkgs.coreutils pkgs.which pkgs.procps ];
patchPhase = ''
sed -i '1aset -efu\nexport PATH=${p}\n' utils/launch.sh
@ -29,7 +29,7 @@ stdenv.mkDerivation rec {
cp vnc_auto.html $out
'';
meta = with stdenv.lib; {
meta = with lib; {
homepage = http://novnc.com/info.html;
repositories.git = git://github.com/novnc/noVNC.git;
description = ''

View File

@ -1,4 +1,4 @@
{ stdenv, fetchzip
{ stdenv, fetchzip, lib
, makeWrapper
, autoPatchelfHook
, xlibs
@ -26,7 +26,7 @@ stdenv.mkDerivation rec {
dontStrip = true;
meta = with stdenv.lib; {
meta = with lib; {
description = "Payload programmer for ns-atmosphere injector for nintendo switch";
homepage = http://www.ns-atmosphere.com;
maintainers = [ maintainers.makefu ];

View File

@ -1,4 +1,4 @@
{ lib, stdenv, fetchurl , mono , unzip
{ lib, stdenv, fetchurl , mono , unzip,
}:
stdenv.mkDerivation rec {
pname = "NX_Game_Info";
@ -25,8 +25,8 @@ stdenv.mkDerivation rec {
meta = {
description = "Tool to read information from Nintendo Switch game files";
homepage = https://github.com/garoxas/NX_Game_Info;
license = stdenv.lib.licenses.gpl3;
platforms = stdenv.lib.platforms.linux;
maintainers = with stdenv.lib.maintainers; [ makefu ];
license = lib.licenses.gpl3;
platforms = lib.platforms.linux;
maintainers = with lib.maintainers; [ makefu ];
};
}

View File

@ -23,8 +23,8 @@ stdenv.mkDerivation rec {
meta = {
description = "PulseAudio volumene meter";
homepage = http://0pointer.de/lennart/projects/pavumeter;
license = stdenv.lib.licenses.gpl2;
platforms = stdenv.lib.platforms.linux;
maintainers = with stdenv.lib.maintainers; [ makefu ];
license = lib.licenses.gpl2;
platforms = lib.platforms.linux;
maintainers = with lib.maintainers; [ makefu ];
};
}

View File

@ -1,4 +1,5 @@
{ stdenv
, lib
, fetchurl
, alsaLib
, unzip
@ -34,7 +35,7 @@ stdenv.mkDerivation rec {
install -m755 -D studio-link-standalone-v${version} $out/bin/studio-link
'';
meta = with stdenv.lib; {
meta = with lib; {
homepage = https://studio-link.com;
description = "Voip transfer";
platforms = platforms.linux;

View File

@ -1,4 +1,4 @@
{ stdenv, fetchpatch, fetchFromGitHub, cmake, openssl, sqlite, pkgconfig, systemd
{ stdenv, lib, fetchpatch, fetchFromGitHub, cmake, openssl, sqlite, pkgconfig, systemd
, tlsSupport ? false }:
assert tlsSupport -> openssl != null;
@ -15,7 +15,7 @@ stdenv.mkDerivation rec {
};
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ cmake sqlite systemd ] ++ stdenv.lib.optional tlsSupport openssl;
buildInputs = [ cmake sqlite systemd ] ++ lib.optional tlsSupport openssl;
outputs = [ "out"
"mod_example"
@ -38,7 +38,7 @@ stdenv.mkDerivation rec {
${if tlsSupport then "-DSSL_SUPPORT=ON" else "-DSSL_SUPPORT=OFF"}
'';
meta = with stdenv.lib; {
meta = with lib; {
description = "High performance peer-to-peer hub for the ADC network";
homepage = https://www.uhub.org/;
license = licenses.gpl3;

View File

@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, kernel, kmod }:
{ stdenv, lib, fetchFromGitHub, kernel, kmod }:
stdenv.mkDerivation rec {
name = "v4l2loopback-dc-${version}-${kernel.version}";
@ -26,7 +26,7 @@ stdenv.mkDerivation rec {
"INSTALL_MOD_PATH=$(out)"
];
meta = with stdenv.lib; {
meta = with lib; {
description = "A kernel module to create V4L2 loopback devices";
homepage = "https://github.com/aramg/droidcam";
license = licenses.gpl2;

View File

@ -11,7 +11,7 @@
let
inherit (pkgs) makeWrapper;
inherit (pkgs.stdenv.lib) fix' extends inNixShell;
inherit (pkgs.lib) fix' extends inNixShell;
pythonPackages =
import "${toString pkgs.path}/pkgs/top-level/python-packages.nix" {
@ -73,7 +73,7 @@ let
propagatedBuildInputs = [
self."six"
];
meta = with pkgs.stdenv.lib; {
meta = with pkgs.lib; {
homepage = "";
license = licenses.mit;
description = "Run JavaScript code from Python";
@ -91,7 +91,7 @@ let
propagatedBuildInputs = [
self."beautifulsoup4"
];
meta = with pkgs.stdenv.lib; {
meta = with pkgs.lib; {
homepage = "";
license = licenses.mit;
description = "Screen-scraping library";
@ -106,7 +106,7 @@ let
doCheck = commonDoCheck;
buildInputs = commonBuildInputs;
propagatedBuildInputs = [ ];
meta = with pkgs.stdenv.lib; {
meta = with pkgs.lib; {
homepage = "";
license = "MPL-2.0";
description = "Python package for providing Mozilla's CA Bundle.";
@ -124,7 +124,7 @@ let
self."PyExecJS"
self."requests"
];
meta = with pkgs.stdenv.lib; {
meta = with pkgs.lib; {
homepage = "";
license = "";
description = "A simple Python module to bypass Cloudflare's anti-bot page. See https://github.com/Anorov/cloudflare-scrape for more information.";
@ -139,7 +139,7 @@ let
doCheck = commonDoCheck;
buildInputs = commonBuildInputs;
propagatedBuildInputs = [ ];
meta = with pkgs.stdenv.lib; {
meta = with pkgs.lib; {
homepage = "";
license = licenses.psfl;
description = "Type Hints for Python";
@ -155,7 +155,7 @@ let
doCheck = commonDoCheck;
buildInputs = commonBuildInputs;
propagatedBuildInputs = [ ];
meta = with pkgs.stdenv.lib; {
meta = with pkgs.lib; {
homepage = "";
license = licenses.lgpl2;
description = "A full-featured console (xterm et al.) user interface library";
@ -177,7 +177,7 @@ let
self."typing"
self."urwid"
];
meta = with pkgs.stdenv.lib; {
meta = with pkgs.lib; {
homepage = "";
license = licenses.gpl3;
description = "An XDCC File Downloader based on the irclib framework";