Merge staging-next into staging

authored by github-actions[bot] and committed by GitHub e218376e b4040ebf

+934 -268
+5
lib/licenses.nix
··· 346 fullName = "Unspecified free software license"; 347 }; 348 349 g4sl = { 350 fullName = "Geant4 Software License"; 351 url = "https://geant4.web.cern.ch/geant4/license/LICENSE.html";
··· 346 fullName = "Unspecified free software license"; 347 }; 348 349 + ftl = spdx { 350 + spdxId = "FTL"; 351 + fullName = "Freetype Project License"; 352 + }; 353 + 354 g4sl = { 355 fullName = "Geant4 Software License"; 356 url = "https://geant4.web.cern.ch/geant4/license/LICENSE.html";
+4
nixos/doc/manual/man-nixos-rebuild.xml
··· 91 <option>--flake</option> <replaceable>flake-uri</replaceable> 92 </arg> 93 94 <sbr /> 95 96 <arg>
··· 91 <option>--flake</option> <replaceable>flake-uri</replaceable> 92 </arg> 93 94 + <arg> 95 + <option>--override-input</option> <replaceable>input-name</replaceable> <replaceable>flake-uri</replaceable> 96 + </arg> 97 + 98 <sbr /> 99 100 <arg>
+1
nixos/modules/services/monitoring/prometheus/exporters.nix
··· 56 "redis" 57 "rspamd" 58 "rtl_433" 59 "snmp" 60 "smokeping" 61 "sql"
··· 56 "redis" 57 "rspamd" 58 "rtl_433" 59 + "script" 60 "snmp" 61 "smokeping" 62 "sql"
+64
nixos/modules/services/monitoring/prometheus/exporters/script.nix
···
··· 1 + { config, lib, pkgs, options }: 2 + 3 + with lib; 4 + 5 + let 6 + cfg = config.services.prometheus.exporters.script; 7 + configFile = pkgs.writeText "script-exporter.yaml" (builtins.toJSON cfg.settings); 8 + in 9 + { 10 + port = 9172; 11 + extraOpts = { 12 + settings.scripts = mkOption { 13 + type = with types; listOf (submodule { 14 + options = { 15 + name = mkOption { 16 + type = str; 17 + example = "sleep"; 18 + description = "Name of the script."; 19 + }; 20 + script = mkOption { 21 + type = str; 22 + example = "sleep 5"; 23 + description = "Shell script to execute when metrics are requested."; 24 + }; 25 + timeout = mkOption { 26 + type = nullOr int; 27 + default = null; 28 + example = 60; 29 + description = "Optional timeout for the script in seconds."; 30 + }; 31 + }; 32 + }); 33 + example = literalExample '' 34 + { 35 + scripts = [ 36 + { name = "sleep"; script = "sleep 5"; } 37 + ]; 38 + } 39 + ''; 40 + description = '' 41 + All settings expressed as an Nix attrset. 42 + 43 + Check the official documentation for the corresponding YAML 44 + settings that can all be used here: <link xlink:href="https://github.com/adhocteam/script_exporter#sample-configuration" /> 45 + ''; 46 + }; 47 + }; 48 + serviceOpts = { 49 + serviceConfig = { 50 + ExecStart = '' 51 + ${pkgs.prometheus-script-exporter}/bin/script_exporter \ 52 + --web.listen-address ${cfg.listenAddress}:${toString cfg.port} \ 53 + --config.file ${configFile} \ 54 + ${concatStringsSep " \\\n " cfg.extraFlags} 55 + ''; 56 + NoNewPrivileges = true; 57 + ProtectHome = true; 58 + ProtectSystem = "strict"; 59 + ProtectKernelTunables = true; 60 + ProtectKernelModules = true; 61 + ProtectControlGroups = true; 62 + }; 63 + }; 64 + }
+18
nixos/tests/prometheus-exporters.nix
··· 964 ''; 965 }; 966 967 smokeping = { 968 exporterConfig = { 969 enable = true;
··· 964 ''; 965 }; 966 967 + script = { 968 + exporterConfig = { 969 + enable = true; 970 + settings.scripts = [ 971 + { name = "success"; script = "sleep 1"; } 972 + ]; 973 + }; 974 + exporterTest = '' 975 + wait_for_unit("prometheus-script-exporter.service") 976 + wait_for_open_port(9172) 977 + wait_until_succeeds( 978 + "curl -sSf 'localhost:9172/probe?name=success' | grep -q '{}'".format( 979 + 'script_success{script="success"} 1' 980 + ) 981 + ) 982 + ''; 983 + }; 984 + 985 smokeping = { 986 exporterConfig = { 987 enable = true;
+2 -2
pkgs/applications/audio/bslizr/default.nix
··· 2 3 stdenv.mkDerivation rec { 4 pname = "bslizr"; 5 - version = "1.2.14"; 6 7 src = fetchFromGitHub { 8 owner = "sjaehn"; 9 repo = "BSlizr"; 10 rev = version; 11 - sha256 = "sha256-dut3I68tJWQH+X6acKROqb5HywufeBQ4/HkXFKsA3hY="; 12 }; 13 14 nativeBuildInputs = [ pkg-config ];
··· 2 3 stdenv.mkDerivation rec { 4 pname = "bslizr"; 5 + version = "1.2.16"; 6 7 src = fetchFromGitHub { 8 owner = "sjaehn"; 9 repo = "BSlizr"; 10 rev = version; 11 + sha256 = "sha256-5DvVkTz79CLvZMZ3XnI0COIfxnhERDSvzbVoJAcqNRI="; 12 }; 13 14 nativeBuildInputs = [ pkg-config ];
+2 -2
pkgs/applications/gis/gmt/default.nix
··· 9 10 stdenv.mkDerivation rec { 11 pname = "gmt"; 12 - version = "6.1.1"; 13 src = fetchurl { 14 url = "https://github.com/GenericMappingTools/gmt/releases/download/${version}/gmt-${version}-src.tar.gz"; 15 - sha256 = "04mdxxcild56jhg9ax522xh78v1wl1x8iqv2f6wv32x9b2lgy1lp"; 16 }; 17 18 nativeBuildInputs = [ cmake ];
··· 9 10 stdenv.mkDerivation rec { 11 pname = "gmt"; 12 + version = "6.2.0"; 13 src = fetchurl { 14 url = "https://github.com/GenericMappingTools/gmt/releases/download/${version}/gmt-${version}-src.tar.gz"; 15 + sha256 = "sha256-q3BikSrurRAhdw+tR1bgqZhg/ejqm0KPsAwi+hWju/w="; 16 }; 17 18 nativeBuildInputs = [ cmake ];
+3 -3
pkgs/applications/networking/browsers/tor-browser-bundle-bin/default.nix
··· 88 fteLibPath = makeLibraryPath [ stdenv.cc.cc gmp ]; 89 90 # Upstream source 91 - version = "10.0.16"; 92 93 lang = "en-US"; 94 95 srcs = { 96 x86_64-linux = fetchurl { 97 url = "https://dist.torproject.org/torbrowser/${version}/tor-browser-linux64-${version}_${lang}.tar.xz"; 98 - sha256 = "07h2gd6cwwq17lrwjpfah1xvr8ny8700qvi971qacrr7ssicw2pw"; 99 }; 100 101 i686-linux = fetchurl { 102 url = "https://dist.torproject.org/torbrowser/${version}/tor-browser-linux32-${version}_${lang}.tar.xz"; 103 - sha256 = "145kniiby5nnd0ll3v2gggzxz52bqbrdp72hvh96i8qnzi0fq25a"; 104 }; 105 }; 106 in
··· 88 fteLibPath = makeLibraryPath [ stdenv.cc.cc gmp ]; 89 90 # Upstream source 91 + version = "10.0.17"; 92 93 lang = "en-US"; 94 95 srcs = { 96 x86_64-linux = fetchurl { 97 url = "https://dist.torproject.org/torbrowser/${version}/tor-browser-linux64-${version}_${lang}.tar.xz"; 98 + sha256 = "13x38n1cvqmxjz0jf2fda8lx2k25szzmg7gvv08z3q5na7109m2m"; 99 }; 100 101 i686-linux = fetchurl { 102 url = "https://dist.torproject.org/torbrowser/${version}/tor-browser-linux32-${version}_${lang}.tar.xz"; 103 + sha256 = "0f0ndwmzh732svwbcf1lbxlvdxw4i4d56w9xdl5fxd4n7ivqml1q"; 104 }; 105 }; 106 in
-111
pkgs/applications/networking/browsers/tor-browser-bundle/extensions.nix
··· 1 - { stdenv 2 - , fetchgit 3 - , fetchurl 4 - 5 - # common 6 - , zip 7 - 8 - # HTTPS Everywhere 9 - , git 10 - , libxml2 # xmllint 11 - , python27 12 - , python27Packages 13 - , rsync 14 - }: 15 - 16 - { 17 - https-everywhere = stdenv.mkDerivation rec { 18 - pname = "https-everywhere"; 19 - version = "2017.10.4"; 20 - 21 - extid = "https-everywhere-eff@eff.org"; 22 - 23 - src = fetchgit { 24 - url = "https://git.torproject.org/https-everywhere.git"; 25 - rev = "refs/tags/${version}"; 26 - sha256 = "1g7971xygnhagnb25xjdf6mli6091ai9igx42d0ww88g8i0cqfzj"; 27 - fetchSubmodules = true; # for translations, TODO: remove 28 - }; 29 - 30 - nativeBuildInputs = [ 31 - git 32 - libxml2 # xmllint 33 - python27 34 - python27Packages.lxml 35 - rsync 36 - zip 37 - ]; 38 - 39 - buildPhase = '' 40 - $shell ./makexpi.sh ${version} --no-recurse 41 - ''; 42 - 43 - installPhase = '' 44 - install -m 444 -D pkg/https-everywhere-$version-eff.xpi "$out/$extid.xpi" 45 - ''; 46 - }; 47 - 48 - noscript = stdenv.mkDerivation rec { 49 - pname = "noscript"; 50 - version = "5.1.2"; 51 - 52 - extid = "{73a6fe31-595d-460b-a920-fcc0f8843232}"; 53 - 54 - src = fetchurl { 55 - url = "https://secure.informaction.com/download/releases/noscript-${version}.xpi"; 56 - sha256 = "1fzspdiwhjabwz1yxb3gzj7giz9jbc1xxm65i93rvhzcp537cs42"; 57 - }; 58 - 59 - dontUnpack = true; 60 - 61 - installPhase = '' 62 - install -m 444 -D $src "$out/$extid.xpi" 63 - ''; 64 - }; 65 - 66 - torbutton = stdenv.mkDerivation rec { 67 - pname = "torbutton"; 68 - version = "1.9.8.1"; 69 - 70 - extid = "torbutton@torproject.org"; 71 - 72 - src = fetchgit { 73 - url = "https://git.torproject.org/torbutton.git"; 74 - rev = "refs/tags/${version}"; 75 - sha256 = "1amp0c9ky0a7fsa0bcbi6n6ginw7s2g3an4rj7kvc1lxmrcsm65l"; 76 - }; 77 - 78 - nativeBuildInputs = [ zip ]; 79 - 80 - buildPhase = '' 81 - $shell ./makexpi.sh 82 - ''; 83 - 84 - installPhase = '' 85 - install -m 444 -D pkg/torbutton-$version.xpi "$out/$extid.xpi" 86 - ''; 87 - }; 88 - 89 - tor-launcher = stdenv.mkDerivation rec { 90 - pname = "tor-launcher"; 91 - version = "0.2.13"; 92 - 93 - extid = "tor-launcher@torproject.org"; 94 - 95 - src = fetchgit { 96 - url = "https://git.torproject.org/tor-launcher.git"; 97 - rev = "refs/tags/${version}"; 98 - sha256 = "1f98v88y2clwvjiw77kxqc9cacp5h0489a540nc2wmsx7vnskrq0"; 99 - }; 100 - 101 - nativeBuildInputs = [ zip ]; 102 - 103 - buildPhase = '' 104 - make package 105 - ''; 106 - 107 - installPhase = '' 108 - install -m 444 -D pkg/tor-launcher-$version.xpi "$out/$extid.xpi" 109 - ''; 110 - }; 111 - }
···
+3 -3
pkgs/applications/version-management/git-and-tools/gitui/default.nix
··· 1 { lib, stdenv, rustPlatform, fetchFromGitHub, libiconv, perl, python3, Security, AppKit, openssl, xclip }: 2 rustPlatform.buildRustPackage rec { 3 pname = "gitui"; 4 - version = "0.16.0"; 5 6 src = fetchFromGitHub { 7 owner = "extrawurst"; 8 repo = pname; 9 rev = "v${version}"; 10 - sha256 = "sha256-XPXldkNLlxgUBdDDR+n3JAO75JQQOvKoduwnWvIompY="; 11 }; 12 13 - cargoSha256 = "sha256-jHrjAdghuFADf/Gd3GeUOpPBG5tqsBG/Q4R0pNxHAps="; 14 15 nativeBuildInputs = [ python3 perl ]; 16 buildInputs = [ openssl ]
··· 1 { lib, stdenv, rustPlatform, fetchFromGitHub, libiconv, perl, python3, Security, AppKit, openssl, xclip }: 2 rustPlatform.buildRustPackage rec { 3 pname = "gitui"; 4 + version = "0.16.1"; 5 6 src = fetchFromGitHub { 7 owner = "extrawurst"; 8 repo = pname; 9 rev = "v${version}"; 10 + sha256 = "sha256-8RPIPimDImLUR9oHVZZ7ZeKLtIhebv/d0kl4CQ5NFdU="; 11 }; 12 13 + cargoSha256 = "sha256-1IHbOjZV8Rc0el7J983B8pvnbt8+QtYiknZU/I85OnY="; 14 15 nativeBuildInputs = [ python3 perl ]; 16 buildInputs = [ openssl ]
+17 -17
pkgs/data/themes/nordic/default.nix
··· 2 3 stdenv.mkDerivation rec { 4 pname = "nordic"; 5 - version = "unstable-2021-05-21"; 6 7 srcs = [ 8 (fetchFromGitHub { 9 owner = "EliverLara"; 10 repo = pname; 11 - rev = "7e4f95ddaa8d94a66ed11a3b939cbd10864f1610"; 12 - sha256 = "079gf8gxn1d2j44nhx4jzx2hz8hpsid7xwh414fjl3g2avb7n05a"; 13 name = "Nordic"; 14 }) 15 16 (fetchFromGitHub { 17 owner = "EliverLara"; 18 repo = pname; 19 - rev = "0b4197e281ba306ac4918cabbd83003c38c0067d"; 20 - sha256 = "1w85i2fbils2ivwsa85g1asj2nx0p0cak840nyr58hdwky49ci5p"; 21 name = "Nordic-standard-buttons"; 22 }) 23 24 (fetchFromGitHub { 25 owner = "EliverLara"; 26 repo = pname; 27 - rev = "aba3c78910de8a47950a0b2defb8022c615d91f6"; 28 - sha256 = "1746w0iahmdgw3kj1q2cswf12pf0ln7qq1grfz9sn8rjafzjchj8"; 29 name = "Nordic-darker"; 30 }) 31 32 (fetchFromGitHub { 33 owner = "EliverLara"; 34 repo = pname; 35 - rev = "9946dd747e1ea05782e084d2c2d94e2e4c7605ac"; 36 - sha256 = "0mz1l1h26zhv0pnsbs0rx0xrwrn2y8g3ik0aa8ww5f411vvzgfr5"; 37 name = "Nordic-darker-standard-buttons"; 38 }) 39 40 (fetchFromGitHub { 41 owner = "EliverLara"; 42 repo = pname; 43 - rev = "5c0be5a783cd14af5c7647ca13d946c64e03561d"; 44 - sha256 = "0751z3b9s0ycrsha20jx8lhdgvggcl0rdgv975dpaiqqjqyd9z06"; 45 name = "Nordic-bluish-accent"; 46 }) 47 48 (fetchFromGitHub { 49 owner = "EliverLara"; 50 repo = pname; 51 - rev = "9cb8d9f786614579e59ec2c3dd9fd8dd9b56316e"; 52 - sha256 = "09s9y7waygrx3p6c0c4py0ywg2ihpdmx73xhw5f92rr5nhsvish7"; 53 name = "Nordic-bluish-accent-standard-buttons"; 54 }) 55 56 (fetchFromGitHub { 57 owner = "EliverLara"; 58 repo = "${pname}-polar"; 59 - rev = "69652db56e1721ac183cd57d21a801a09655a811"; 60 - sha256 = "0zjd4np11mjwmc1kh2n1ig77g4wq88s2yrmnga0gvw1lf44n3qn2"; 61 name = "Nordic-Polar"; 62 }) 63 64 (fetchFromGitHub { 65 owner = "EliverLara"; 66 repo = "${pname}-polar"; 67 - rev = "3a67c1a2308ba3e9ec5d82f4a3416f85b6085b08"; 68 - sha256 = "0gpg2izh4ay78j79vjp4svmi3qy9qaw0n6ai8zwm7p25dwm56fjy"; 69 name = "Nordic-Polar-standard-buttons"; 70 }) 71 ];
··· 2 3 stdenv.mkDerivation rec { 4 pname = "nordic"; 5 + version = "unstable-2021-06-04"; 6 7 srcs = [ 8 (fetchFromGitHub { 9 owner = "EliverLara"; 10 repo = pname; 11 + rev = "9a98c05f4d4f6c9e701ac20b0bf5c18284ad0015"; 12 + sha256 = "0ghgr7fr7anm8hdq6n46xhkjxydqkr0qlk1q7mdg08j43f0yra7b"; 13 name = "Nordic"; 14 }) 15 16 (fetchFromGitHub { 17 owner = "EliverLara"; 18 repo = pname; 19 + rev = "90ce6f539735af1f231c4fa07708cef602e1c8a2"; 20 + sha256 = "1g6sz7ifpc8jf4iplcsmihqhjdc7yp5xygw8584n122jmh8mak47"; 21 name = "Nordic-standard-buttons"; 22 }) 23 24 (fetchFromGitHub { 25 owner = "EliverLara"; 26 repo = pname; 27 + rev = "529cdb86b4d4474a67a56eb9377e3c7907b452db"; 28 + sha256 = "06li44i5wh4h06fbhvjf5cjma5czjdgnwvm79d8hg6vmi2101b0a"; 29 name = "Nordic-darker"; 30 }) 31 32 (fetchFromGitHub { 33 owner = "EliverLara"; 34 repo = pname; 35 + rev = "1d16f37de315c298a6c3d79a552ed6f18cbb7fb4"; 36 + sha256 = "0nxzygnysg4ciib337vay0qcc80hpryjnclwjwjzj51i95366k25"; 37 name = "Nordic-darker-standard-buttons"; 38 }) 39 40 (fetchFromGitHub { 41 owner = "EliverLara"; 42 repo = pname; 43 + rev = "78a30080bc50ee88c23d393049306ef1925bcdb8"; 44 + sha256 = "10w4815fcf3pd24ar7jp0wcdiwn3zzrdj2p6fqlgx26biz7kf3iv"; 45 name = "Nordic-bluish-accent"; 46 }) 47 48 (fetchFromGitHub { 49 owner = "EliverLara"; 50 repo = pname; 51 + rev = "e4363da8d457e8b14f6e4340979225db92d34aa9"; 52 + sha256 = "1sjw2hvg4jgxqzgqhqixq216a7vv5licbc8ii1rsz88ycafsbr7j"; 53 name = "Nordic-bluish-accent-standard-buttons"; 54 }) 55 56 (fetchFromGitHub { 57 owner = "EliverLara"; 58 repo = "${pname}-polar"; 59 + rev = "a38fd7d440309573947d3e53ea3ed295cf027ce7"; 60 + sha256 = "1r6hz0m0y7c1d0ka1x9cd47r0jvpgkld6x3gf2b7w7yvqpmh6a44"; 61 name = "Nordic-Polar"; 62 }) 63 64 (fetchFromGitHub { 65 owner = "EliverLara"; 66 repo = "${pname}-polar"; 67 + rev = "b86d43c48bcac57c49d891b967311fd90f6d4bcd"; 68 + sha256 = "0c725kf5ql42zrqk6dwk6i7wyrhr3gddipvhy6692nv0dszqm0ml"; 69 name = "Nordic-Polar-standard-buttons"; 70 }) 71 ];
+6 -6
pkgs/development/beam-modules/build-mix.nix
··· 23 24 pkg = self: stdenv.mkDerivation (attrs // { 25 name = "${name}-${version}"; 26 - inherit version; 27 - inherit src; 28 29 MIX_ENV = mixEnv; 30 MIX_DEBUG = if enableDebugInfo then 1 else 0; 31 HEX_OFFLINE = 1; 32 33 - # stripping does not have any effect on beam files 34 - dontStrip = true; 35 - 36 # add to ERL_LIBS so other modules can find at runtime. 37 # http://erlang.org/doc/man/code.html#code-path 38 # Mix also searches the code path when compiling with the --no-deps-check flag ··· 41 addToSearchPath ERL_LIBS "$1/lib/erlang/lib" 42 ''; 43 44 - buildInputs = buildInputs ++ [ elixir hex ]; 45 propagatedBuildInputs = propagatedBuildInputs ++ beamDeps; 46 47 buildPhase = attrs.buildPhase or '' ··· 72 73 runHook postInstall 74 ''; 75 76 passthru = { 77 packageName = name;
··· 23 24 pkg = self: stdenv.mkDerivation (attrs // { 25 name = "${name}-${version}"; 26 + inherit version src buildInputs; 27 28 MIX_ENV = mixEnv; 29 MIX_DEBUG = if enableDebugInfo then 1 else 0; 30 HEX_OFFLINE = 1; 31 32 # add to ERL_LIBS so other modules can find at runtime. 33 # http://erlang.org/doc/man/code.html#code-path 34 # Mix also searches the code path when compiling with the --no-deps-check flag ··· 37 addToSearchPath ERL_LIBS "$1/lib/erlang/lib" 38 ''; 39 40 + nativeBuildInputs = [ elixir hex ]; 41 propagatedBuildInputs = propagatedBuildInputs ++ beamDeps; 42 43 buildPhase = attrs.buildPhase or '' ··· 68 69 runHook postInstall 70 ''; 71 + 72 + # stripping does not have any effect on beam files 73 + # it is however needed for dependencies with NIFs like bcrypt for example 74 + dontStrip = false; 75 76 passthru = { 77 packageName = name;
+5 -1
pkgs/development/beam-modules/build-rebar3.nix
··· 42 buildInputs = buildInputs ++ [ erlang rebar3 openssl libyaml ]; 43 propagatedBuildInputs = unique beamDeps; 44 45 - dontStrip = true; 46 inherit src; 47 48 setupHook = writeText "setupHook.sh" '' 49 addToSearchPath ERL_LIBS "$1/lib/erlang/lib/"
··· 42 buildInputs = buildInputs ++ [ erlang rebar3 openssl libyaml ]; 43 propagatedBuildInputs = unique beamDeps; 44 45 inherit src; 46 + 47 + # stripping does not have any effect on beam files 48 + # it is however needed for dependencies with NIFs 49 + # false is the default but we keep this for readability 50 + dontStrip = false; 51 52 setupHook = writeText "setupHook.sh" '' 53 addToSearchPath ERL_LIBS "$1/lib/erlang/lib/"
+20 -19
pkgs/development/beam-modules/mix-release.nix
··· 1 - { stdenv, lib, elixir, erlang, findutils, hex, rebar, rebar3, fetchMixDeps, makeWrapper, git }: 2 3 { pname 4 , version ··· 23 in 24 assert mixNixDeps != { } -> mixFodDeps == null; 25 stdenv.mkDerivation (overridable // { 26 - nativeBuildInputs = nativeBuildInputs ++ [ erlang hex elixir makeWrapper git ]; 27 buildInputs = builtins.attrValues mixNixDeps; 28 29 MIX_ENV = mixEnv; ··· 31 HEX_OFFLINE = 1; 32 DEBUG = if enableDebugInfo then 1 else 0; # for Rebar3 compilation 33 # the api with `mix local.rebar rebar path` makes a copy of the binary 34 - MIX_REBAR = "${rebar}/bin/rebar"; 35 MIX_REBAR3 = "${rebar3}/bin/rebar3"; 36 37 postUnpack = '' ··· 82 runHook postInstall 83 ''; 84 85 - fixupPhase = '' 86 - runHook preFixup 87 if [ -e "$out/bin/${pname}.bat" ]; then # absent in special cases, i.e. elixir-ls 88 rm "$out/bin/${pname}.bat" # windows file 89 fi ··· 94 if [ -e $out/releases/COOKIE ]; then # absent in special cases, i.e. elixir-ls 95 rm $out/releases/COOKIE 96 fi 97 - # TODO remove the uneeded reference too erlang 98 - # one possible way would be 99 - # for f in $(${findutils}/bin/find $out -name start); do 100 - # substituteInPlace $f \ 101 - # --replace 'ROOTDIR=${erlang}/lib/erlang' 'ROOTDIR=""' 102 - # done 103 - # What is left to do is to check that erlang is not required on 104 - # the host 105 - 106 - patchShebangs $out 107 - runHook postFixup 108 ''; 109 - # TODO figure out how to do a Fixed Output Derivation and add the output hash 110 - # This doesn't play well at the moment with Phoenix projects 111 - # for example that have frontend dependencies 112 113 # disallowedReferences = [ erlang ]; 114 })
··· 1 + { stdenv, lib, elixir, erlang, findutils, hex, rebar3, fetchMixDeps, makeWrapper, git, ripgrep }: 2 3 { pname 4 , version ··· 23 in 24 assert mixNixDeps != { } -> mixFodDeps == null; 25 stdenv.mkDerivation (overridable // { 26 + # rg is used as a better grep to search for erlang references in the final release 27 + nativeBuildInputs = nativeBuildInputs ++ [ erlang hex elixir makeWrapper git ripgrep ]; 28 buildInputs = builtins.attrValues mixNixDeps; 29 30 MIX_ENV = mixEnv; ··· 32 HEX_OFFLINE = 1; 33 DEBUG = if enableDebugInfo then 1 else 0; # for Rebar3 compilation 34 # the api with `mix local.rebar rebar path` makes a copy of the binary 35 MIX_REBAR3 = "${rebar3}/bin/rebar3"; 36 37 postUnpack = '' ··· 82 runHook postInstall 83 ''; 84 85 + # Stripping of the binary is intentional 86 + # even though it does not affect beam files 87 + # it is necessary for NIFs binaries 88 + postFixup = '' 89 if [ -e "$out/bin/${pname}.bat" ]; then # absent in special cases, i.e. elixir-ls 90 rm "$out/bin/${pname}.bat" # windows file 91 fi ··· 96 if [ -e $out/releases/COOKIE ]; then # absent in special cases, i.e. elixir-ls 97 rm $out/releases/COOKIE 98 fi 99 + # removing unused erlang reference from resulting derivation to reduce 100 + # closure size 101 + if [ -e $out/erts-* ]; then 102 + echo "ERTS found in $out - removing references to erlang to reduce closure size" 103 + # there is a link in $out/erts-*/bin/start always 104 + # sometimes there are links in dependencies like bcrypt compiled binaries 105 + for file in $(rg "${erlang}/lib/erlang" "$out" --text --files-with-matches); do 106 + substituteInPlace "$file" --replace "${erlang}/lib/erlang" "$out" 107 + done 108 + fi 109 ''; 110 111 + # TODO investigate why the resulting closure still has 112 + # a reference to erlang. 113 + # uncommenting the following will fail the build 114 # disallowedReferences = [ erlang ]; 115 })
+2 -1
pkgs/development/beam-modules/rebar3-release.nix
··· 46 47 buildInputs = buildInputs ++ [ erlang rebar3 openssl ] ++ beamDeps; 48 49 - dontStrip = true; 50 51 inherit src; 52
··· 46 47 buildInputs = buildInputs ++ [ erlang rebar3 openssl ] ++ beamDeps; 48 49 + # ensure we strip any native binaries (eg. NIFs, ports) 50 + stripDebugList = lib.optional (releaseType == "release") "rel"; 51 52 inherit src; 53
-2
pkgs/development/interpreters/erlang/generic-builder.nix
··· 142 wrapProgram $out/lib/erlang/bin/start_erl --prefix PATH ":" "${lib.makeBinPath [ gnused gawk ]}" 143 ''; 144 145 - setupHook = ./setup-hook.sh; 146 - 147 passthru = { 148 updateScript = 149 let major = builtins.head (builtins.splitVersion version);
··· 142 wrapProgram $out/lib/erlang/bin/start_erl --prefix PATH ":" "${lib.makeBinPath [ gnused gawk ]}" 143 ''; 144 145 passthru = { 146 updateScript = 147 let major = builtins.head (builtins.splitVersion version);
-5
pkgs/development/interpreters/erlang/setup-hook.sh
··· 1 - addErlangLibPath() { 2 - addToSearchPath ERL_LIBS $1/lib/erlang/lib 3 - } 4 - 5 - addEnvHooks "$hostOffset" addErlangLibPath
···
+2 -1
pkgs/development/libraries/mesa/default.nix
··· 4 , expat, libdrm, xorg, wayland, wayland-protocols, openssl 5 , llvmPackages, libffi, libomxil-bellagio, libva-minimal 6 , libelf, libvdpau 7 - , libglvnd 8 , galliumDrivers ? ["auto"] 9 , driDrivers ? ["auto"] 10 , vulkanDrivers ? ["auto"] ··· 127 libpthreadstubs openssl /*or another sha1 provider*/ 128 ] ++ lib.optionals (elem "wayland" eglPlatforms) [ wayland wayland-protocols ] 129 ++ lib.optionals stdenv.isLinux [ libomxil-bellagio libva-minimal ] 130 ++ lib.optional withValgrind valgrind-light; 131 132 depsBuildBuild = [ pkg-config ];
··· 4 , expat, libdrm, xorg, wayland, wayland-protocols, openssl 5 , llvmPackages, libffi, libomxil-bellagio, libva-minimal 6 , libelf, libvdpau 7 + , libglvnd, libunwind 8 , galliumDrivers ? ["auto"] 9 , driDrivers ? ["auto"] 10 , vulkanDrivers ? ["auto"] ··· 127 libpthreadstubs openssl /*or another sha1 provider*/ 128 ] ++ lib.optionals (elem "wayland" eglPlatforms) [ wayland wayland-protocols ] 129 ++ lib.optionals stdenv.isLinux [ libomxil-bellagio libva-minimal ] 130 + ++ lib.optionals stdenv.isDarwin [ libunwind ] 131 ++ lib.optional withValgrind valgrind-light; 132 133 depsBuildBuild = [ pkg-config ];
+3 -3
pkgs/development/libraries/rlottie/default.nix
··· 2 3 stdenv.mkDerivation rec { 4 pname = "rlottie"; 5 - version = "0.1"; 6 7 src = fetchFromGitHub { 8 owner = "Samsung"; 9 repo = pname; 10 rev = "v${version}"; 11 - hash = "sha256-8KQ0ZnVg5rTb44IYnn02WBSe2SA5UGUOSLEdmmscUDs="; 12 }; 13 14 nativeBuildInputs = [ meson ninja pkg-config ]; ··· 16 meta = with lib; { 17 homepage = "https://github.com/Samsung/rlottie"; 18 description = "A platform independent standalone c++ library for rendering vector based animations and art in realtime"; 19 - license = licenses.unfree; # Mixed, see https://github.com/Samsung/rlottie/blob/master/COPYING 20 platforms = platforms.all; 21 maintainers = with maintainers; [ CRTified ]; 22 };
··· 2 3 stdenv.mkDerivation rec { 4 pname = "rlottie"; 5 + version = "0.2"; 6 7 src = fetchFromGitHub { 8 owner = "Samsung"; 9 repo = pname; 10 rev = "v${version}"; 11 + sha256 = "10bxr1zf9wxl55d4cw2j02r6sgqln7mbxplhhfvhw0z92fi40kr3"; 12 }; 13 14 nativeBuildInputs = [ meson ninja pkg-config ]; ··· 16 meta = with lib; { 17 homepage = "https://github.com/Samsung/rlottie"; 18 description = "A platform independent standalone c++ library for rendering vector based animations and art in realtime"; 19 + license = with licenses; [ mit bsd3 mpl11 ftl ]; 20 platforms = platforms.all; 21 maintainers = with maintainers; [ CRTified ]; 22 };
+9 -2
pkgs/development/python-modules/pyezviz/default.nix
··· 1 { lib 2 , buildPythonPackage 3 , fetchFromGitHub 4 , pandas 5 , pythonOlder 6 , requests 7 }: 8 9 buildPythonPackage rec { 10 pname = "pyezviz"; 11 - version = "0.1.8.7"; 12 disabled = pythonOlder "3.6"; 13 14 src = fetchFromGitHub { 15 owner = "baqs"; 16 repo = "pyEzviz"; 17 rev = version; 18 - sha256 = "0k7wl9wf5i0yfdds6f9ma78ckz1p4h72z5s3qg0axzra62fvl9xg"; 19 }; 20 21 propagatedBuildInputs = [ 22 pandas 23 requests 24 ]; 25 26 # Project has no tests. test_cam_rtsp.py is more a sample for using the module 27 doCheck = false; 28 pythonImportsCheck = [ "pyezviz" ]; 29 30 meta = with lib; {
··· 1 { lib 2 , buildPythonPackage 3 , fetchFromGitHub 4 + , paho-mqtt 5 , pandas 6 + , pycryptodome 7 , pythonOlder 8 , requests 9 + , xmltodict 10 }: 11 12 buildPythonPackage rec { 13 pname = "pyezviz"; 14 + version = "0.1.8.9"; 15 disabled = pythonOlder "3.6"; 16 17 src = fetchFromGitHub { 18 owner = "baqs"; 19 repo = "pyEzviz"; 20 rev = version; 21 + sha256 = "sha256-ZjHDha7hSRXy86wm61bMMF8zMi5Lux6RbD0yFD/78J4="; 22 }; 23 24 propagatedBuildInputs = [ 25 + paho-mqtt 26 pandas 27 + pycryptodome 28 requests 29 + xmltodict 30 ]; 31 32 # Project has no tests. test_cam_rtsp.py is more a sample for using the module 33 doCheck = false; 34 + 35 pythonImportsCheck = [ "pyezviz" ]; 36 37 meta = with lib; {
+2 -2
pkgs/development/python-modules/pyhomematic/default.nix
··· 7 8 buildPythonPackage rec { 9 pname = "pyhomematic"; 10 - version = "0.1.72"; 11 12 disabled = !isPy3k; 13 14 src = fetchPypi { 15 inherit pname version; 16 - sha256 = "a1d44103b90418d9c8cde4699a1c671d57d12469be23a45e93bfc00df28ef11b"; 17 }; 18 19 checkPhase = ''
··· 7 8 buildPythonPackage rec { 9 pname = "pyhomematic"; 10 + version = "0.1.73"; 11 12 disabled = !isPy3k; 13 14 src = fetchPypi { 15 inherit pname version; 16 + sha256 = "sha256-KaeheCIJgAqC68rgE71b1sSatSH25phGk662fnuOOsk="; 17 }; 18 19 checkPhase = ''
+3 -3
pkgs/development/tools/kubie/default.nix
··· 2 3 rustPlatform.buildRustPackage rec { 4 pname = "kubie"; 5 - version = "0.14.1"; 6 7 src = fetchFromGitHub { 8 rev = "v${version}"; 9 owner = "sbstp"; 10 repo = "kubie"; 11 - sha256 = "0mhm2j3i2ql7dz5vx0mwab8h8zr05ar5lfzdacgnrc293g1c01aq"; 12 }; 13 14 - cargoSha256 = "1rfqk7dmcz5zfq9fm9kvxf5718m0v0yfjm5a8718d40zzzvam7sy"; 15 16 nativeBuildInputs = [ installShellFiles ]; 17
··· 2 3 rustPlatform.buildRustPackage rec { 4 pname = "kubie"; 5 + version = "0.15.0"; 6 7 src = fetchFromGitHub { 8 rev = "v${version}"; 9 owner = "sbstp"; 10 repo = "kubie"; 11 + sha256 = "sha256-uNlKxcU1iCR4JzNfBatEeKMMdu9ZqvOqna0sGrcwK30="; 12 }; 13 14 + cargoSha256 = "sha256-4Xo17HlYvJLf90R0gS9EFJSJKmNHClXqAJTx9mY29KA="; 15 16 nativeBuildInputs = [ installShellFiles ]; 17
+2 -2
pkgs/development/tools/misc/fswatch/default.nix
··· 11 12 stdenv.mkDerivation rec { 13 pname = "fswatch"; 14 - version = "1.15.0"; 15 16 src = fetchFromGitHub { 17 owner = "emcrisostomo"; 18 repo = "fswatch"; 19 rev = version; 20 - sha256 = "11479ac436g8bwk0lfnmdms0cirv9k11pdvfrrg9jwkki1j1abkk"; 21 }; 22 23 nativeBuildInputs = [ autoreconfHook makeWrapper ] ++ lib.optionals stdenv.isDarwin [ CoreServices ];
··· 11 12 stdenv.mkDerivation rec { 13 pname = "fswatch"; 14 + version = "1.16.0"; 15 16 src = fetchFromGitHub { 17 owner = "emcrisostomo"; 18 repo = "fswatch"; 19 rev = version; 20 + sha256 = "sha256-EKbo5gkrWuijLJgYsNBDtxy0ioXu/yHxnPPeOpk620g="; 21 }; 22 23 nativeBuildInputs = [ autoreconfHook makeWrapper ] ++ lib.optionals stdenv.isDarwin [ CoreServices ];
+2 -2
pkgs/development/tools/mix2nix/default.nix
··· 2 3 stdenv.mkDerivation rec { 4 pname = "mix2nix"; 5 - version = "0.1.3"; 6 7 src = fetchFromGitHub { 8 owner = "ydlr"; 9 repo = "mix2nix"; 10 rev = version; 11 - sha256 = "11qn80im5zfbx25ibxqrgi90mglf8pnsmrqsami633mcf2gvj2hy"; 12 }; 13 14 nativeBuildInputs = [ elixir ];
··· 2 3 stdenv.mkDerivation rec { 4 pname = "mix2nix"; 5 + version = "0.1.4"; 6 7 src = fetchFromGitHub { 8 owner = "ydlr"; 9 repo = "mix2nix"; 10 rev = version; 11 + sha256 = "0q4yq8glrdj72j7b9xnwb6j3cli3cccimh9sb7acb4npaiivvf69"; 12 }; 13 14 nativeBuildInputs = [ elixir ];
+10 -2
pkgs/misc/vscode-extensions/default.nix
··· 1 - { config, lib, buildEnv, callPackage, vscode-utils, nodePackages, jdk, llvmPackages_8 }: 2 3 let 4 inherit (vscode-utils) buildVscodeMarketplaceExtension; ··· 99 }; 100 }; 101 102 - B4dM4n.vscode-nixpkgs-fmt = buildVscodeMarketplaceExtension { 103 mktplcRef = { 104 name = "nixpkgs-fmt"; 105 publisher = "B4dM4n"; 106 version = "0.0.1"; 107 sha256 = "sha256-vz2kU36B1xkLci2QwLpl/SBEhfSWltIDJ1r7SorHcr8="; 108 }; 109 meta = with lib; { 110 license = licenses.mit; 111 };
··· 1 + { config, lib, buildEnv, callPackage, vscode-utils, nodePackages, jdk, llvmPackages_8, nixpkgs-fmt, jq }: 2 3 let 4 inherit (vscode-utils) buildVscodeMarketplaceExtension; ··· 99 }; 100 }; 101 102 + b4dm4n.vscode-nixpkgs-fmt = buildVscodeMarketplaceExtension { 103 mktplcRef = { 104 name = "nixpkgs-fmt"; 105 publisher = "B4dM4n"; 106 version = "0.0.1"; 107 sha256 = "sha256-vz2kU36B1xkLci2QwLpl/SBEhfSWltIDJ1r7SorHcr8="; 108 }; 109 + nativeBuildInputs = [ jq ]; 110 + buildInputs = [ nixpkgs-fmt ]; 111 + postInstall = '' 112 + cd "$out/$installPrefix" 113 + tmp_package_json=$(mktemp) 114 + jq '.contributes.configuration.properties."nixpkgs-fmt.path".default = "${nixpkgs-fmt}/bin/nixpkgs-fmt"' package.json > "$tmp_package_json" 115 + mv "$tmp_package_json" package.json 116 + ''; 117 meta = with lib; { 118 license = licenses.mit; 119 };
+7 -6
pkgs/os-specific/linux/v4l2loopback/default.nix
··· 1 { lib, stdenv, fetchFromGitHub, kernel, kmod }: 2 3 stdenv.mkDerivation rec { 4 - name = "v4l2loopback-${version}-${kernel.version}"; 5 - version = "0.12.5"; 6 7 src = fetchFromGitHub { 8 owner = "umlaeute"; 9 repo = "v4l2loopback"; 10 - rev = "v${version}"; 11 - sha256 = "1qi4l6yam8nrlmc3zwkrz9vph0xsj1cgmkqci4652mbpbzigg7vn"; 12 }; 13 14 hardeningDisable = [ "format" "pic" ]; ··· 20 ''; 21 22 nativeBuildInputs = kernel.moduleBuildDependencies; 23 buildInputs = [ kmod ]; 24 25 makeFlags = [ ··· 30 meta = with lib; { 31 description = "A kernel module to create V4L2 loopback devices"; 32 homepage = "https://github.com/umlaeute/v4l2loopback"; 33 - license = licenses.gpl2; 34 - maintainers = [ ]; 35 platforms = platforms.linux; 36 }; 37 }
··· 1 { lib, stdenv, fetchFromGitHub, kernel, kmod }: 2 3 stdenv.mkDerivation rec { 4 + pname = "v4l2loopback"; 5 + version = "unstable-2020-04-22-${kernel.version}"; 6 7 src = fetchFromGitHub { 8 owner = "umlaeute"; 9 repo = "v4l2loopback"; 10 + rev = "d26e624b4ead762d34152f9f825b3a51fb92fb9c"; 11 + sha256 = "sha256-OA45vmuVieoL7J83D3TD5qi3SBsiqi0kiQn4i1K6dVE="; 12 }; 13 14 hardeningDisable = [ "format" "pic" ]; ··· 20 ''; 21 22 nativeBuildInputs = kernel.moduleBuildDependencies; 23 + 24 buildInputs = [ kmod ]; 25 26 makeFlags = [ ··· 31 meta = with lib; { 32 description = "A kernel module to create V4L2 loopback devices"; 33 homepage = "https://github.com/umlaeute/v4l2loopback"; 34 + license = licenses.gpl2Only; 35 + maintainers = with maintainers; [ fortuneteller2k ]; 36 platforms = platforms.linux; 37 }; 38 }
+25
pkgs/servers/monitoring/prometheus/script-exporter.nix
···
··· 1 + { lib, buildGoModule, fetchFromGitHub, nixosTests }: 2 + 3 + buildGoModule rec { 4 + pname = "script_exporter"; 5 + version = "1.2.0"; 6 + 7 + src = fetchFromGitHub { 8 + owner = "adhocteam"; 9 + repo = pname; 10 + rev = "v${version}"; 11 + sha256 = "t/xgRalcHxEcT1peU1ePJUItD02rQdfz1uWpXDBo6C0="; 12 + }; 13 + 14 + vendorSha256 = "Hs1SNpC+t1OCcoF3FBgpVGkhR97ulq6zYhi8BQlgfVc="; 15 + 16 + passthru.tests = { inherit (nixosTests.prometheus-exporters) script; }; 17 + 18 + meta = with lib; { 19 + description = "Shell script prometheus exporter"; 20 + homepage = "https://github.com/adhocteam/script_exporter"; 21 + license = licenses.mit; 22 + maintainers = with maintainers; [ Flakebi ]; 23 + platforms = platforms.linux; 24 + }; 25 + }
+9 -5
pkgs/shells/powershell/default.nix
··· 1 { stdenv, lib, autoPatchelfHook, fetchzip, libunwind, libuuid, icu, curl 2 , darwin, makeWrapper, less, openssl_1_1, pam, lttng-ust }: 3 4 - let platformString = if stdenv.isDarwin then "osx" 5 else if stdenv.isLinux then "linux" 6 else throw "unsupported platform"; 7 platformSha = if stdenv.isDarwin then "0w44ws8b6zfixf7xz93hmplqsx18279n9x8j77y4rbzs13fldvsn" 8 - else if stdenv.isLinux then "0xm7l49zhkz2fly3d751kjd5cy3ws9zji9i0061lkd06dvkch7jy" 9 else throw "unsupported platform"; 10 platformLdLibraryPath = if stdenv.isDarwin then "DYLD_FALLBACK_LIBRARY_PATH" 11 else if stdenv.isLinux then "LD_LIBRARY_PATH" ··· 18 version = "7.1.3"; 19 20 src = fetchzip { 21 - url = "https://github.com/PowerShell/PowerShell/releases/download/v${version}/powershell-${version}-${platformString}-x64.tar.gz"; 22 sha256 = platformSha; 23 stripRoot = false; 24 }; ··· 42 chmod a+x $pslibs/pwsh 43 44 ls $pslibs 45 - '' + lib.optionalString (!stdenv.isDarwin) '' 46 patchelf --replace-needed libcrypto${ext}.1.0.0 libcrypto${ext}.1.1 $pslibs/libmi.so 47 patchelf --replace-needed libssl${ext}.1.0.0 libssl${ext}.1.1 $pslibs/libmi.so 48 '' + '' ··· 66 description = "Powerful cross-platform (Windows, Linux, and macOS) shell and scripting language based on .NET"; 67 homepage = "https://github.com/PowerShell/PowerShell"; 68 maintainers = with maintainers; [ yrashk srgom ]; 69 - platforms = [ "x86_64-darwin" "x86_64-linux" ]; 70 license = with licenses; [ mit ]; 71 }; 72
··· 1 { stdenv, lib, autoPatchelfHook, fetchzip, libunwind, libuuid, icu, curl 2 , darwin, makeWrapper, less, openssl_1_1, pam, lttng-ust }: 3 4 + let archString = if stdenv.isAarch64 then "arm64" 5 + else if stdenv.isx86_64 then "x64" 6 + else throw "unsupported platform"; 7 + platformString = if stdenv.isDarwin then "osx" 8 else if stdenv.isLinux then "linux" 9 else throw "unsupported platform"; 10 platformSha = if stdenv.isDarwin then "0w44ws8b6zfixf7xz93hmplqsx18279n9x8j77y4rbzs13fldvsn" 11 + else if (stdenv.isLinux && stdenv.isx86_64) then "0xm7l49zhkz2fly3d751kjd5cy3ws9zji9i0061lkd06dvkch7jy" 12 + else if (stdenv.isLinux && stdenv.isAarch64) then "1axbi4kmb1ydys7c45jhp729w1srid3c8jgivb4bdmdp56rf6h32" 13 else throw "unsupported platform"; 14 platformLdLibraryPath = if stdenv.isDarwin then "DYLD_FALLBACK_LIBRARY_PATH" 15 else if stdenv.isLinux then "LD_LIBRARY_PATH" ··· 22 version = "7.1.3"; 23 24 src = fetchzip { 25 + url = "https://github.com/PowerShell/PowerShell/releases/download/v${version}/powershell-${version}-${platformString}-${archString}.tar.gz"; 26 sha256 = platformSha; 27 stripRoot = false; 28 }; ··· 46 chmod a+x $pslibs/pwsh 47 48 ls $pslibs 49 + '' + lib.optionalString (!stdenv.isDarwin && !stdenv.isAarch64) '' 50 patchelf --replace-needed libcrypto${ext}.1.0.0 libcrypto${ext}.1.1 $pslibs/libmi.so 51 patchelf --replace-needed libssl${ext}.1.0.0 libssl${ext}.1.1 $pslibs/libmi.so 52 '' + '' ··· 70 description = "Powerful cross-platform (Windows, Linux, and macOS) shell and scripting language based on .NET"; 71 homepage = "https://github.com/PowerShell/PowerShell"; 72 maintainers = with maintainers; [ yrashk srgom ]; 73 + platforms = [ "x86_64-darwin" "x86_64-linux" "aarch64-linux"]; 74 license = with licenses; [ mit ]; 75 }; 76
+12 -15
pkgs/tools/inputmethods/interception-tools/default.nix
··· 1 - { lib, stdenv, fetchurl, pkg-config, cmake, libyamlcpp, 2 - libevdev, udev }: 3 4 - let 5 - version = "0.2.1"; 6 - baseName = "interception-tools"; 7 - in stdenv.mkDerivation { 8 - name = "${baseName}-${version}"; 9 - 10 - src = fetchurl { 11 - url = "https://gitlab.com/interception/linux/tools/repository/v${version}/archive.tar.gz"; 12 - sha256 = "0lqz89wsf9r5xdgflincysxg4l8fpgg5z8zczhhrg9s5787srfzi"; 13 }; 14 15 nativeBuildInputs = [ cmake pkg-config ]; 16 - buildInputs = [ libevdev udev libyamlcpp ]; 17 18 prePatch = '' 19 substituteInPlace CMakeLists.txt --replace \ ··· 21 "\"$(pkg-config --cflags libevdev | cut -c 3-)\"" 22 ''; 23 24 - patches = [ ./fix-udevmon-configuration-job-path.patch ]; 25 - 26 meta = { 27 description = "A minimal composable infrastructure on top of libudev and libevdev"; 28 homepage = "https://gitlab.com/interception/linux/tools"; 29 - license = lib.licenses.gpl3; 30 maintainers = [ lib.maintainers.vyp ]; 31 platforms = lib.platforms.linux; 32 };
··· 1 + { lib, stdenv, fetchFromGitLab, pkg-config, cmake, libyamlcpp, 2 + libevdev, udev, boost }: 3 4 + stdenv.mkDerivation rec { 5 + pname = "interception-tools"; 6 + version = "0.6.6"; 7 + src = fetchFromGitLab { 8 + owner = "interception/linux"; 9 + repo = "tools"; 10 + rev = "v${version}"; 11 + sha256 = "0k9h14a9d65nwvv7pj0kigjgzfv453mm3r4svnxfg1h5lccmy8jj"; 12 }; 13 14 nativeBuildInputs = [ cmake pkg-config ]; 15 + buildInputs = [ libevdev udev libyamlcpp boost ]; 16 17 prePatch = '' 18 substituteInPlace CMakeLists.txt --replace \ ··· 20 "\"$(pkg-config --cflags libevdev | cut -c 3-)\"" 21 ''; 22 23 meta = { 24 description = "A minimal composable infrastructure on top of libudev and libevdev"; 25 homepage = "https://gitlab.com/interception/linux/tools"; 26 + license = lib.licenses.gpl3Only; 27 maintainers = [ lib.maintainers.vyp ]; 28 platforms = lib.platforms.linux; 29 };
-32
pkgs/tools/inputmethods/interception-tools/fix-udevmon-configuration-job-path.patch
··· 1 - From d3a5d661b80f3597368f517ebaeddfdfaafc1bf2 Mon Sep 17 00:00:00 2001 2 - From: xd1le <elisp.vim@gmail.com> 3 - Date: Mon, 28 Aug 2017 00:19:09 +1000 4 - Subject: [PATCH] fix udevmon configuration job path 5 - 6 - For some reason, the udevmon job $PATH seems to be empty (or otherwise 7 - seems to point to `/no-such-path`). This commit fixes that by setting 8 - its $PATH to the same $PATH that the parent udevmon process has. 9 - --- 10 - udevmon.cpp | 5 ++++- 11 - 1 file changed, 4 insertions(+), 1 deletion(-) 12 - 13 - diff --git a/udevmon.cpp b/udevmon.cpp 14 - index ebdd909..b523efd 100644 15 - --- a/udevmon.cpp 16 - +++ b/udevmon.cpp 17 - @@ -237,8 +237,11 @@ private: 18 - case 0: { 19 - char *command[] = {(char *)"sh", (char *)"-c", 20 - (char *)job.c_str(), nullptr}; 21 - + std::string path = getenv("PATH"); 22 - std::string variables = "DEVNODE=" + devnode; 23 - - char *environment[] = {(char *)variables.c_str(), nullptr}; 24 - + std::string pathenv = "PATH=" + path; 25 - + char *environment[] = {(char *)variables.c_str(), 26 - + (char *)pathenv.c_str(), nullptr}; 27 - execvpe(command[0], command, environment); 28 - std::fprintf(stderr, 29 - R"(exec failed for devnode %s, job "%s" )" 30 - -- 31 - 2.14.1 32 -
···
+2 -2
pkgs/tools/misc/chafa/default.nix
··· 4 }: 5 6 stdenv.mkDerivation rec { 7 - version = "1.6.0"; 8 pname = "chafa"; 9 10 src = fetchFromGitHub { 11 owner = "hpjansson"; 12 repo = "chafa"; 13 rev = version; 14 - sha256 = "sha256-GaXVMM23U3M+qNJrWYR+DLiCmILcuX5EIkQqzwN/l1Y="; 15 }; 16 17 nativeBuildInputs = [ autoconf
··· 4 }: 5 6 stdenv.mkDerivation rec { 7 + version = "1.6.1"; 8 pname = "chafa"; 9 10 src = fetchFromGitHub { 11 owner = "hpjansson"; 12 repo = "chafa"; 13 rev = version; 14 + sha256 = "sha256-isQxeb7OQh4W8RvtKWXbKVYJ8LlfLiOkMJoPjsGFouM="; 15 }; 16 17 nativeBuildInputs = [ autoconf
+587
pkgs/tools/misc/freshfetch/Cargo.lock
···
··· 1 + # This file is automatically @generated by Cargo. 2 + # It is not intended for manual editing. 3 + version = 3 4 + 5 + [[package]] 6 + name = "aho-corasick" 7 + version = "0.7.15" 8 + source = "registry+https://github.com/rust-lang/crates.io-index" 9 + checksum = "7404febffaa47dac81aa44dba71523c9d069b1bdc50a77db41195149e17f68e5" 10 + dependencies = [ 11 + "memchr", 12 + ] 13 + 14 + [[package]] 15 + name = "ansi_term" 16 + version = "0.11.0" 17 + source = "registry+https://github.com/rust-lang/crates.io-index" 18 + checksum = "ee49baf6cb617b853aa8d93bf420db2383fab46d314482ca2803b40d5fde979b" 19 + dependencies = [ 20 + "winapi", 21 + ] 22 + 23 + [[package]] 24 + name = "atty" 25 + version = "0.2.14" 26 + source = "registry+https://github.com/rust-lang/crates.io-index" 27 + checksum = "d9b39be18770d11421cdb1b9947a45dd3f37e93092cbf377614828a319d5fee8" 28 + dependencies = [ 29 + "hermit-abi", 30 + "libc", 31 + "winapi", 32 + ] 33 + 34 + [[package]] 35 + name = "autocfg" 36 + version = "1.0.1" 37 + source = "registry+https://github.com/rust-lang/crates.io-index" 38 + checksum = "cdb031dd78e28731d87d56cc8ffef4a8f36ca26c38fe2de700543e627f8a464a" 39 + 40 + [[package]] 41 + name = "bitflags" 42 + version = "1.2.1" 43 + source = "registry+https://github.com/rust-lang/crates.io-index" 44 + checksum = "cf1de2fe8c75bc145a2f577add951f8134889b4795d47466a54a5c846d691693" 45 + 46 + [[package]] 47 + name = "bstr" 48 + version = "0.2.15" 49 + source = "registry+https://github.com/rust-lang/crates.io-index" 50 + checksum = "a40b47ad93e1a5404e6c18dec46b628214fee441c70f4ab5d6942142cc268a3d" 51 + dependencies = [ 52 + "memchr", 53 + ] 54 + 55 + [[package]] 56 + name = "cc" 57 + version = "1.0.67" 58 + source = "registry+https://github.com/rust-lang/crates.io-index" 59 + checksum = "e3c69b077ad434294d3ce9f1f6143a2a4b89a8a2d54ef813d85003a4fd1137fd" 60 + 61 + [[package]] 62 + name = "cfg-if" 63 + version = "1.0.0" 64 + source = "registry+https://github.com/rust-lang/crates.io-index" 65 + checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" 66 + 67 + [[package]] 68 + name = "chrono" 69 + version = "0.4.19" 70 + source = "registry+https://github.com/rust-lang/crates.io-index" 71 + checksum = "670ad68c9088c2a963aaa298cb369688cf3f9465ce5e2d4ca10e6e0098a1ce73" 72 + dependencies = [ 73 + "libc", 74 + "num-integer", 75 + "num-traits", 76 + "time", 77 + "winapi", 78 + ] 79 + 80 + [[package]] 81 + name = "clap" 82 + version = "2.33.3" 83 + source = "registry+https://github.com/rust-lang/crates.io-index" 84 + checksum = "37e58ac78573c40708d45522f0d80fa2f01cc4f9b4e2bf749807255454312002" 85 + dependencies = [ 86 + "ansi_term", 87 + "atty", 88 + "bitflags", 89 + "strsim", 90 + "textwrap", 91 + "unicode-width", 92 + "vec_map", 93 + ] 94 + 95 + [[package]] 96 + name = "clml_rs" 97 + version = "0.3.0" 98 + source = "git+https://github.com/K4rakara/clml-rs#eecf1378f4e85a9b3dc91e8a15d497a2fd75906f" 99 + dependencies = [ 100 + "lazy_static", 101 + "rand", 102 + "regex", 103 + ] 104 + 105 + [[package]] 106 + name = "cmd_lib" 107 + version = "0.8.5" 108 + source = "registry+https://github.com/rust-lang/crates.io-index" 109 + checksum = "42443b644d30f401746fb4483fba96b13076e1ef6cb5bca7d6a14d1d8f9f2bd9" 110 + dependencies = [ 111 + "cmd_lib_core", 112 + "cmd_lib_macros", 113 + ] 114 + 115 + [[package]] 116 + name = "cmd_lib_core" 117 + version = "0.1.0" 118 + source = "registry+https://github.com/rust-lang/crates.io-index" 119 + checksum = "c50c50a1536e882455aeaff22015146ea143b9106fc8e116669dd078ec7b7fc8" 120 + 121 + [[package]] 122 + name = "cmd_lib_macros" 123 + version = "0.1.0" 124 + source = "registry+https://github.com/rust-lang/crates.io-index" 125 + checksum = "2d202b0cfc28d8928ba89138c0a8248cf921b9870c6c9d60c9951092df5b62b2" 126 + dependencies = [ 127 + "cmd_lib_core", 128 + "proc-macro2", 129 + "quote", 130 + ] 131 + 132 + [[package]] 133 + name = "core-foundation-sys" 134 + version = "0.8.2" 135 + source = "registry+https://github.com/rust-lang/crates.io-index" 136 + checksum = "ea221b5284a47e40033bf9b66f35f984ec0ea2931eb03505246cd27a963f981b" 137 + 138 + [[package]] 139 + name = "crossbeam-channel" 140 + version = "0.5.1" 141 + source = "registry+https://github.com/rust-lang/crates.io-index" 142 + checksum = "06ed27e177f16d65f0f0c22a213e17c696ace5dd64b14258b52f9417ccb52db4" 143 + dependencies = [ 144 + "cfg-if", 145 + "crossbeam-utils", 146 + ] 147 + 148 + [[package]] 149 + name = "crossbeam-deque" 150 + version = "0.8.0" 151 + source = "registry+https://github.com/rust-lang/crates.io-index" 152 + checksum = "94af6efb46fef72616855b036a624cf27ba656ffc9be1b9a3c931cfc7749a9a9" 153 + dependencies = [ 154 + "cfg-if", 155 + "crossbeam-epoch", 156 + "crossbeam-utils", 157 + ] 158 + 159 + [[package]] 160 + name = "crossbeam-epoch" 161 + version = "0.9.3" 162 + source = "registry+https://github.com/rust-lang/crates.io-index" 163 + checksum = "2584f639eb95fea8c798496315b297cf81b9b58b6d30ab066a75455333cf4b12" 164 + dependencies = [ 165 + "cfg-if", 166 + "crossbeam-utils", 167 + "lazy_static", 168 + "memoffset", 169 + "scopeguard", 170 + ] 171 + 172 + [[package]] 173 + name = "crossbeam-utils" 174 + version = "0.8.3" 175 + source = "registry+https://github.com/rust-lang/crates.io-index" 176 + checksum = "e7e9d99fa91428effe99c5c6d4634cdeba32b8cf784fc428a2a687f61a952c49" 177 + dependencies = [ 178 + "autocfg", 179 + "cfg-if", 180 + "lazy_static", 181 + ] 182 + 183 + [[package]] 184 + name = "doc-comment" 185 + version = "0.3.3" 186 + source = "registry+https://github.com/rust-lang/crates.io-index" 187 + checksum = "fea41bba32d969b513997752735605054bc0dfa92b4c56bf1189f2e174be7a10" 188 + 189 + [[package]] 190 + name = "either" 191 + version = "1.6.1" 192 + source = "registry+https://github.com/rust-lang/crates.io-index" 193 + checksum = "e78d4f1cc4ae33bbfc157ed5d5a5ef3bc29227303d595861deb238fcec4e9457" 194 + 195 + [[package]] 196 + name = "freshfetch" 197 + version = "0.2.0" 198 + dependencies = [ 199 + "chrono", 200 + "clap", 201 + "clml_rs", 202 + "cmd_lib", 203 + "cmd_lib_core", 204 + "lazy_static", 205 + "mlua", 206 + "regex", 207 + "sysinfo", 208 + "term_size", 209 + "uname", 210 + "users", 211 + ] 212 + 213 + [[package]] 214 + name = "getrandom" 215 + version = "0.1.16" 216 + source = "registry+https://github.com/rust-lang/crates.io-index" 217 + checksum = "8fc3cb4d91f53b50155bdcfd23f6a4c39ae1969c2ae85982b135750cccaf5fce" 218 + dependencies = [ 219 + "cfg-if", 220 + "libc", 221 + "wasi 0.9.0+wasi-snapshot-preview1", 222 + ] 223 + 224 + [[package]] 225 + name = "hermit-abi" 226 + version = "0.1.18" 227 + source = "registry+https://github.com/rust-lang/crates.io-index" 228 + checksum = "322f4de77956e22ed0e5032c359a0f1273f1f7f0d79bfa3b8ffbc730d7fbcc5c" 229 + dependencies = [ 230 + "libc", 231 + ] 232 + 233 + [[package]] 234 + name = "lazy_static" 235 + version = "1.4.0" 236 + source = "registry+https://github.com/rust-lang/crates.io-index" 237 + checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646" 238 + 239 + [[package]] 240 + name = "libc" 241 + version = "0.2.93" 242 + source = "registry+https://github.com/rust-lang/crates.io-index" 243 + checksum = "9385f66bf6105b241aa65a61cb923ef20efc665cb9f9bb50ac2f0c4b7f378d41" 244 + 245 + [[package]] 246 + name = "log" 247 + version = "0.4.14" 248 + source = "registry+https://github.com/rust-lang/crates.io-index" 249 + checksum = "51b9bbe6c47d51fc3e1a9b945965946b4c44142ab8792c50835a980d362c2710" 250 + dependencies = [ 251 + "cfg-if", 252 + ] 253 + 254 + [[package]] 255 + name = "lua-src" 256 + version = "543.0.0" 257 + source = "registry+https://github.com/rust-lang/crates.io-index" 258 + checksum = "029180f994b9b36f47d905f92569b516acf7d073778e2e781c15ee375b1ca27d" 259 + dependencies = [ 260 + "cc", 261 + ] 262 + 263 + [[package]] 264 + name = "luajit-src" 265 + version = "210.1.3+restyfe08842" 266 + source = "registry+https://github.com/rust-lang/crates.io-index" 267 + checksum = "36d3de8377d8e0492b646527befb7eb826a9ecd2dc8c1f81ab0e654bc03a029b" 268 + dependencies = [ 269 + "cc", 270 + ] 271 + 272 + [[package]] 273 + name = "memchr" 274 + version = "2.3.4" 275 + source = "registry+https://github.com/rust-lang/crates.io-index" 276 + checksum = "0ee1c47aaa256ecabcaea351eae4a9b01ef39ed810004e298d2511ed284b1525" 277 + 278 + [[package]] 279 + name = "memoffset" 280 + version = "0.6.3" 281 + source = "registry+https://github.com/rust-lang/crates.io-index" 282 + checksum = "f83fb6581e8ed1f85fd45c116db8405483899489e38406156c25eb743554361d" 283 + dependencies = [ 284 + "autocfg", 285 + ] 286 + 287 + [[package]] 288 + name = "mlua" 289 + version = "0.5.3" 290 + source = "registry+https://github.com/rust-lang/crates.io-index" 291 + checksum = "6f2fc8e1085d53b72898c59ceee1980b5826b0c98ce99886b7518f0ead00e5cb" 292 + dependencies = [ 293 + "bstr", 294 + "cc", 295 + "lazy_static", 296 + "lua-src", 297 + "luajit-src", 298 + "num-traits", 299 + "pkg-config", 300 + ] 301 + 302 + [[package]] 303 + name = "ntapi" 304 + version = "0.3.6" 305 + source = "registry+https://github.com/rust-lang/crates.io-index" 306 + checksum = "3f6bb902e437b6d86e03cce10a7e2af662292c5dfef23b65899ea3ac9354ad44" 307 + dependencies = [ 308 + "winapi", 309 + ] 310 + 311 + [[package]] 312 + name = "num-integer" 313 + version = "0.1.44" 314 + source = "registry+https://github.com/rust-lang/crates.io-index" 315 + checksum = "d2cc698a63b549a70bc047073d2949cce27cd1c7b0a4a862d08a8031bc2801db" 316 + dependencies = [ 317 + "autocfg", 318 + "num-traits", 319 + ] 320 + 321 + [[package]] 322 + name = "num-traits" 323 + version = "0.2.14" 324 + source = "registry+https://github.com/rust-lang/crates.io-index" 325 + checksum = "9a64b1ec5cda2586e284722486d802acf1f7dbdc623e2bfc57e65ca1cd099290" 326 + dependencies = [ 327 + "autocfg", 328 + ] 329 + 330 + [[package]] 331 + name = "num_cpus" 332 + version = "1.13.0" 333 + source = "registry+https://github.com/rust-lang/crates.io-index" 334 + checksum = "05499f3756671c15885fee9034446956fff3f243d6077b91e5767df161f766b3" 335 + dependencies = [ 336 + "hermit-abi", 337 + "libc", 338 + ] 339 + 340 + [[package]] 341 + name = "once_cell" 342 + version = "1.7.2" 343 + source = "registry+https://github.com/rust-lang/crates.io-index" 344 + checksum = "af8b08b04175473088b46763e51ee54da5f9a164bc162f615b91bc179dbf15a3" 345 + 346 + [[package]] 347 + name = "pkg-config" 348 + version = "0.3.19" 349 + source = "registry+https://github.com/rust-lang/crates.io-index" 350 + checksum = "3831453b3449ceb48b6d9c7ad7c96d5ea673e9b470a1dc578c2ce6521230884c" 351 + 352 + [[package]] 353 + name = "ppv-lite86" 354 + version = "0.2.10" 355 + source = "registry+https://github.com/rust-lang/crates.io-index" 356 + checksum = "ac74c624d6b2d21f425f752262f42188365d7b8ff1aff74c82e45136510a4857" 357 + 358 + [[package]] 359 + name = "proc-macro2" 360 + version = "1.0.26" 361 + source = "registry+https://github.com/rust-lang/crates.io-index" 362 + checksum = "a152013215dca273577e18d2bf00fa862b89b24169fb78c4c95aeb07992c9cec" 363 + dependencies = [ 364 + "unicode-xid", 365 + ] 366 + 367 + [[package]] 368 + name = "quote" 369 + version = "1.0.9" 370 + source = "registry+https://github.com/rust-lang/crates.io-index" 371 + checksum = "c3d0b9745dc2debf507c8422de05d7226cc1f0644216dfdfead988f9b1ab32a7" 372 + dependencies = [ 373 + "proc-macro2", 374 + ] 375 + 376 + [[package]] 377 + name = "rand" 378 + version = "0.7.3" 379 + source = "registry+https://github.com/rust-lang/crates.io-index" 380 + checksum = "6a6b1679d49b24bbfe0c803429aa1874472f50d9b363131f0e89fc356b544d03" 381 + dependencies = [ 382 + "getrandom", 383 + "libc", 384 + "rand_chacha", 385 + "rand_core", 386 + "rand_hc", 387 + ] 388 + 389 + [[package]] 390 + name = "rand_chacha" 391 + version = "0.2.2" 392 + source = "registry+https://github.com/rust-lang/crates.io-index" 393 + checksum = "f4c8ed856279c9737206bf725bf36935d8666ead7aa69b52be55af369d193402" 394 + dependencies = [ 395 + "ppv-lite86", 396 + "rand_core", 397 + ] 398 + 399 + [[package]] 400 + name = "rand_core" 401 + version = "0.5.1" 402 + source = "registry+https://github.com/rust-lang/crates.io-index" 403 + checksum = "90bde5296fc891b0cef12a6d03ddccc162ce7b2aff54160af9338f8d40df6d19" 404 + dependencies = [ 405 + "getrandom", 406 + ] 407 + 408 + [[package]] 409 + name = "rand_hc" 410 + version = "0.2.0" 411 + source = "registry+https://github.com/rust-lang/crates.io-index" 412 + checksum = "ca3129af7b92a17112d59ad498c6f81eaf463253766b90396d39ea7a39d6613c" 413 + dependencies = [ 414 + "rand_core", 415 + ] 416 + 417 + [[package]] 418 + name = "rayon" 419 + version = "1.5.0" 420 + source = "registry+https://github.com/rust-lang/crates.io-index" 421 + checksum = "8b0d8e0819fadc20c74ea8373106ead0600e3a67ef1fe8da56e39b9ae7275674" 422 + dependencies = [ 423 + "autocfg", 424 + "crossbeam-deque", 425 + "either", 426 + "rayon-core", 427 + ] 428 + 429 + [[package]] 430 + name = "rayon-core" 431 + version = "1.9.0" 432 + source = "registry+https://github.com/rust-lang/crates.io-index" 433 + checksum = "9ab346ac5921dc62ffa9f89b7a773907511cdfa5490c572ae9be1be33e8afa4a" 434 + dependencies = [ 435 + "crossbeam-channel", 436 + "crossbeam-deque", 437 + "crossbeam-utils", 438 + "lazy_static", 439 + "num_cpus", 440 + ] 441 + 442 + [[package]] 443 + name = "regex" 444 + version = "1.4.5" 445 + source = "registry+https://github.com/rust-lang/crates.io-index" 446 + checksum = "957056ecddbeba1b26965114e191d2e8589ce74db242b6ea25fc4062427a5c19" 447 + dependencies = [ 448 + "aho-corasick", 449 + "memchr", 450 + "regex-syntax", 451 + ] 452 + 453 + [[package]] 454 + name = "regex-syntax" 455 + version = "0.6.23" 456 + source = "registry+https://github.com/rust-lang/crates.io-index" 457 + checksum = "24d5f089152e60f62d28b835fbff2cd2e8dc0baf1ac13343bef92ab7eed84548" 458 + 459 + [[package]] 460 + name = "scopeguard" 461 + version = "1.1.0" 462 + source = "registry+https://github.com/rust-lang/crates.io-index" 463 + checksum = "d29ab0c6d3fc0ee92fe66e2d99f700eab17a8d57d1c1d3b748380fb20baa78cd" 464 + 465 + [[package]] 466 + name = "strsim" 467 + version = "0.8.0" 468 + source = "registry+https://github.com/rust-lang/crates.io-index" 469 + checksum = "8ea5119cdb4c55b55d432abb513a0429384878c15dde60cc77b1c99de1a95a6a" 470 + 471 + [[package]] 472 + name = "sysinfo" 473 + version = "0.15.9" 474 + source = "registry+https://github.com/rust-lang/crates.io-index" 475 + checksum = "de94457a09609f33fec5e7fceaf907488967c6c7c75d64da6a7ce6ffdb8b5abd" 476 + dependencies = [ 477 + "cc", 478 + "cfg-if", 479 + "core-foundation-sys", 480 + "doc-comment", 481 + "libc", 482 + "ntapi", 483 + "once_cell", 484 + "rayon", 485 + "winapi", 486 + ] 487 + 488 + [[package]] 489 + name = "term_size" 490 + version = "0.3.2" 491 + source = "registry+https://github.com/rust-lang/crates.io-index" 492 + checksum = "1e4129646ca0ed8f45d09b929036bafad5377103edd06e50bf574b353d2b08d9" 493 + dependencies = [ 494 + "libc", 495 + "winapi", 496 + ] 497 + 498 + [[package]] 499 + name = "textwrap" 500 + version = "0.11.0" 501 + source = "registry+https://github.com/rust-lang/crates.io-index" 502 + checksum = "d326610f408c7a4eb6f51c37c330e496b08506c9457c9d34287ecc38809fb060" 503 + dependencies = [ 504 + "unicode-width", 505 + ] 506 + 507 + [[package]] 508 + name = "time" 509 + version = "0.1.44" 510 + source = "registry+https://github.com/rust-lang/crates.io-index" 511 + checksum = "6db9e6914ab8b1ae1c260a4ae7a49b6c5611b40328a735b21862567685e73255" 512 + dependencies = [ 513 + "libc", 514 + "wasi 0.10.0+wasi-snapshot-preview1", 515 + "winapi", 516 + ] 517 + 518 + [[package]] 519 + name = "uname" 520 + version = "0.1.1" 521 + source = "registry+https://github.com/rust-lang/crates.io-index" 522 + checksum = "b72f89f0ca32e4db1c04e2a72f5345d59796d4866a1ee0609084569f73683dc8" 523 + dependencies = [ 524 + "libc", 525 + ] 526 + 527 + [[package]] 528 + name = "unicode-width" 529 + version = "0.1.8" 530 + source = "registry+https://github.com/rust-lang/crates.io-index" 531 + checksum = "9337591893a19b88d8d87f2cec1e73fad5cdfd10e5a6f349f498ad6ea2ffb1e3" 532 + 533 + [[package]] 534 + name = "unicode-xid" 535 + version = "0.2.1" 536 + source = "registry+https://github.com/rust-lang/crates.io-index" 537 + checksum = "f7fe0bb3479651439c9112f72b6c505038574c9fbb575ed1bf3b797fa39dd564" 538 + 539 + [[package]] 540 + name = "users" 541 + version = "0.10.0" 542 + source = "registry+https://github.com/rust-lang/crates.io-index" 543 + checksum = "aa4227e95324a443c9fcb06e03d4d85e91aabe9a5a02aa818688b6918b6af486" 544 + dependencies = [ 545 + "libc", 546 + "log", 547 + ] 548 + 549 + [[package]] 550 + name = "vec_map" 551 + version = "0.8.2" 552 + source = "registry+https://github.com/rust-lang/crates.io-index" 553 + checksum = "f1bddf1187be692e79c5ffeab891132dfb0f236ed36a43c7ed39f1165ee20191" 554 + 555 + [[package]] 556 + name = "wasi" 557 + version = "0.9.0+wasi-snapshot-preview1" 558 + source = "registry+https://github.com/rust-lang/crates.io-index" 559 + checksum = "cccddf32554fecc6acb585f82a32a72e28b48f8c4c1883ddfeeeaa96f7d8e519" 560 + 561 + [[package]] 562 + name = "wasi" 563 + version = "0.10.0+wasi-snapshot-preview1" 564 + source = "registry+https://github.com/rust-lang/crates.io-index" 565 + checksum = "1a143597ca7c7793eff794def352d41792a93c481eb1042423ff7ff72ba2c31f" 566 + 567 + [[package]] 568 + name = "winapi" 569 + version = "0.3.9" 570 + source = "registry+https://github.com/rust-lang/crates.io-index" 571 + checksum = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419" 572 + dependencies = [ 573 + "winapi-i686-pc-windows-gnu", 574 + "winapi-x86_64-pc-windows-gnu", 575 + ] 576 + 577 + [[package]] 578 + name = "winapi-i686-pc-windows-gnu" 579 + version = "0.4.0" 580 + source = "registry+https://github.com/rust-lang/crates.io-index" 581 + checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6" 582 + 583 + [[package]] 584 + name = "winapi-x86_64-pc-windows-gnu" 585 + version = "0.4.0" 586 + source = "registry+https://github.com/rust-lang/crates.io-index" 587 + checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f"
+31
pkgs/tools/misc/freshfetch/default.nix
···
··· 1 + { fetchFromGitHub, fetchurl, lib, rustPlatform }: 2 + 3 + rustPlatform.buildRustPackage rec { 4 + pname = "freshfetch"; 5 + version = "0.2.0"; 6 + 7 + src = fetchFromGitHub { 8 + owner = "k4rakara"; 9 + repo = pname; 10 + rev = "v${version}"; 11 + sha256 = "1l9zngr5l12g71j85iyph4jjri3crxc2pi9q0gczrrzvs03439mn"; 12 + }; 13 + 14 + cargoLock = { 15 + # update Cargo.lock every new release of freshfetch 16 + lockFile = ./Cargo.lock; 17 + outputHashes = { 18 + "clml_rs-0.3.0" = "0hvd59zh7czk9jd1a2wwcm1acpcfbz32v9ka7ap6f74d638jcc19"; 19 + }; 20 + }; 21 + 22 + # freshfetch depends on rust nightly features 23 + RUSTC_BOOTSTRAP = 1; 24 + 25 + meta = with lib; { 26 + description = "A fresh take on neofetch"; 27 + homepage = "https://github.com/k4rakara/freshfetch"; 28 + license = licenses.mit; 29 + maintainers = with maintainers; [ figsoda ]; 30 + }; 31 + }
+31
pkgs/tools/misc/pgbadger/default.nix
···
··· 1 + { buildPerlPackage, lib, fetchFromGitHub, which, bzip2, PodMarkdown, JSONXS 2 + , TextCSV }: 3 + buildPerlPackage rec { 4 + pname = "pgbadger"; 5 + version = "11.5"; 6 + src = fetchFromGitHub { 7 + owner = "darold"; 8 + repo = "pgbadger"; 9 + rev = "98b38161ba99faae77c81d5fa47bd769c1dd750b"; 10 + sha256 = "0r01mx1922g1m56x4958cihk491zjlaijvap0i32grjmnv4s5v88"; 11 + }; 12 + 13 + postPatch = '' 14 + patchShebangs ./pgbadger 15 + ''; 16 + 17 + outputs = [ "out" ]; 18 + 19 + PERL_MM_OPT = "INSTALL_BASE=${placeholder "out"}"; 20 + 21 + buildInputs = [ PodMarkdown JSONXS TextCSV ]; 22 + 23 + checkInputs = [ which bzip2 ]; 24 + 25 + meta = { 26 + homepage = "https://github.com/darold/pgbadger"; 27 + description = "A fast PostgreSQL Log Analyzer"; 28 + license = lib.licenses.postgresql; 29 + maintainers = lib.teams.determinatesystems.members; 30 + }; 31 + }
+1 -1
pkgs/tools/networking/ngrok-2/default.nix
··· 39 description = "Allows you to expose a web server running on your local machine to the internet"; 40 homepage = "https://ngrok.com/"; 41 license = licenses.unfree; 42 - platforms = [ "i686-linux" "x86_64-linux" "aarch64-linux" "x86_64-darwin" ]; 43 maintainers = [ maintainers.bobvanderlinden ]; 44 }; 45 }
··· 39 description = "Allows you to expose a web server running on your local machine to the internet"; 40 homepage = "https://ngrok.com/"; 41 license = licenses.unfree; 42 + platforms = [ "i686-linux" "x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin" ]; 43 maintainers = [ maintainers.bobvanderlinden ]; 44 }; 45 }
+1
pkgs/tools/networking/ngrok-2/update.sh
··· 29 get_download_info linux arm 30 get_download_info linux arm64 31 get_download_info darwin amd64 32 ) | jq --slurp 'map ({ (.sys): . }) | add' \ 33 > pkgs/tools/networking/ngrok-2/versions.json
··· 29 get_download_info linux arm 30 get_download_info linux arm64 31 get_download_info darwin amd64 32 + get_download_info darwin arm64 33 ) | jq --slurp 'map ({ (.sys): . }) | add' \ 34 > pkgs/tools/networking/ngrok-2/versions.json
+21 -15
pkgs/tools/networking/ngrok-2/versions.json
··· 1 { 2 "linux-386": { 3 "sys": "linux-386", 4 - "url": "https://bin.equinox.io/a/bjFaKy3TSAg/ngrok-2.3.35-linux-386", 5 - "sha256": "1fdd1c057c3c31044400ef6ade20ad3f10bce415ad33ccfb4bc2fd83bb36f62f", 6 - "version": "2.3.35" 7 }, 8 "linux-amd64": { 9 "sys": "linux-amd64", 10 - "url": "https://bin.equinox.io/a/52fZaxjGg9n/ngrok-2.3.35-linux-amd64", 11 - "sha256": "b456608239cdf4b5119916c62a87640667d1cb1900c53faed89e3dacc1fe4679", 12 - "version": "2.3.35" 13 }, 14 "linux-arm": { 15 "sys": "linux-arm", 16 - "url": "https://bin.equinox.io/a/2cUd5mRRjoF/ngrok-2.3.35-linux-arm", 17 - "sha256": "94d88311e9b2baea615d9fe7c6921ac0167040ec66aa0d0cbb856c027d617f1f", 18 - "version": "2.3.35" 19 }, 20 "linux-arm64": { 21 "sys": "linux-arm64", 22 - "url": "https://bin.equinox.io/a/k2qx6ipHqpb/ngrok-2.3.35-linux-arm64", 23 - "sha256": "fd07f5c449f1c1444606bbc9d06fa6b649325ddf0b3e6dac6f32d785a886f170", 24 - "version": "2.3.35" 25 }, 26 "darwin-amd64": { 27 "sys": "darwin-amd64", 28 - "url": "https://bin.equinox.io/a/jKkD2Wcds2L/ngrok-2.3.35-darwin-amd64", 29 - "sha256": "dd74a6be1a155c41ff06aadad910196cae13e06ab997bc0b144288b2da568f2a", 30 - "version": "2.3.35" 31 } 32 }
··· 1 { 2 "linux-386": { 3 "sys": "linux-386", 4 + "url": "https://bin.equinox.io/a/c4ZY6f7svn7/ngrok-2.3.40-linux-386", 5 + "sha256": "1b645ff0abbb28ca7c0f6a2109653be2dc281860b582b4de6927fde12c99da26", 6 + "version": "2.3.40" 7 }, 8 "linux-amd64": { 9 "sys": "linux-amd64", 10 + "url": "https://bin.equinox.io/a/b5PAmc6L9z2/ngrok-2.3.40-linux-amd64", 11 + "sha256": "218d267cd1195334718bafac14bfdf1c19dc95dcf8a24aaa6a1383c21dc86e76", 12 + "version": "2.3.40" 13 }, 14 "linux-arm": { 15 "sys": "linux-arm", 16 + "url": "https://bin.equinox.io/a/aRh9rdUAJyf/ngrok-2.3.40-linux-arm", 17 + "sha256": "538a7431df141a929a250eaf6ed7afdcce817bcd8cfe60b61f4c6d7a289b1d1c", 18 + "version": "2.3.40" 19 }, 20 "linux-arm64": { 21 "sys": "linux-arm64", 22 + "url": "https://bin.equinox.io/a/2gpRjDRBpJv/ngrok-2.3.40-linux-arm64", 23 + "sha256": "dc7b4465ef95f6d04d1b1996111b3a2631e5f464d7dca7f4994f59ea4edbe21f", 24 + "version": "2.3.40" 25 }, 26 "darwin-amd64": { 27 "sys": "darwin-amd64", 28 + "url": "https://bin.equinox.io/a/fcZQXtHSDgM/ngrok-2.3.40-darwin-amd64", 29 + "sha256": "80c8fb121d6c93350d84351d9516674f4e20a3e003cdd7dcb4c3e7c48b9c5b07", 30 + "version": "2.3.40" 31 + }, 32 + "darwin-arm64": { 33 + "sys": "darwin-arm64", 34 + "url": "https://bin.equinox.io/a/3TEKdZeyAnt/ngrok-2.3.40-darwin-arm64", 35 + "sha256": "c9e6dfec454f9faec92a13dfd3f3857de982007e3b85987bb875aa0d74ca8101", 36 + "version": "2.3.40" 37 } 38 }
+5
pkgs/top-level/all-packages.nix
··· 4841 4842 frescobaldi = python3Packages.callPackage ../misc/frescobaldi {}; 4843 4844 frostwire = callPackage ../applications/networking/p2p/frostwire { }; 4845 frostwire-bin = callPackage ../applications/networking/p2p/frostwire/frostwire-bin.nix { }; 4846 ··· 7233 pasystray = callPackage ../tools/audio/pasystray { }; 7234 7235 pcmsolver = callPackage ../development/libraries/pcmsolver { }; 7236 7237 phash = callPackage ../development/libraries/phash { }; 7238 ··· 19740 prometheus-redis-exporter = callPackage ../servers/monitoring/prometheus/redis-exporter.nix { }; 19741 prometheus-rabbitmq-exporter = callPackage ../servers/monitoring/prometheus/rabbitmq-exporter.nix { }; 19742 prometheus-rtl_433-exporter = callPackage ../servers/monitoring/prometheus/rtl_433-exporter.nix { }; 19743 prometheus-smokeping-prober = callPackage ../servers/monitoring/prometheus/smokeping-prober.nix { }; 19744 prometheus-snmp-exporter = callPackage ../servers/monitoring/prometheus/snmp-exporter.nix { }; 19745 prometheus-statsd-exporter = callPackage ../servers/monitoring/prometheus/statsd-exporter.nix { };
··· 4841 4842 frescobaldi = python3Packages.callPackage ../misc/frescobaldi {}; 4843 4844 + freshfetch = callPackage ../tools/misc/freshfetch { }; 4845 + 4846 frostwire = callPackage ../applications/networking/p2p/frostwire { }; 4847 frostwire-bin = callPackage ../applications/networking/p2p/frostwire/frostwire-bin.nix { }; 4848 ··· 7235 pasystray = callPackage ../tools/audio/pasystray { }; 7236 7237 pcmsolver = callPackage ../development/libraries/pcmsolver { }; 7238 + 7239 + pgbadger = perlPackages.callPackage ../tools/misc/pgbadger { }; 7240 7241 phash = callPackage ../development/libraries/phash { }; 7242 ··· 19744 prometheus-redis-exporter = callPackage ../servers/monitoring/prometheus/redis-exporter.nix { }; 19745 prometheus-rabbitmq-exporter = callPackage ../servers/monitoring/prometheus/rabbitmq-exporter.nix { }; 19746 prometheus-rtl_433-exporter = callPackage ../servers/monitoring/prometheus/rtl_433-exporter.nix { }; 19747 + prometheus-script-exporter = callPackage ../servers/monitoring/prometheus/script-exporter.nix { }; 19748 prometheus-smokeping-prober = callPackage ../servers/monitoring/prometheus/smokeping-prober.nix { }; 19749 prometheus-snmp-exporter = callPackage ../servers/monitoring/prometheus/snmp-exporter.nix { }; 19750 prometheus-statsd-exporter = callPackage ../servers/monitoring/prometheus/statsd-exporter.nix { };
+17 -3
pkgs/top-level/dotnet-packages.nix
··· 174 175 FSharpFormatting = fetchNuGet { 176 baseName = "FSharp.Formatting"; 177 - version = "2.9.8"; 178 - sha256 = "1bswcpa68i2lqds4kkl2qxgkfrppbpxa4jkyja48azljajh0df3m"; 179 - outputFiles = [ "lib/net40/*" ]; 180 }; 181 182 NUnit3 = fetchNuGet {
··· 174 175 FSharpFormatting = fetchNuGet { 176 baseName = "FSharp.Formatting"; 177 + version = "11.2.0"; 178 + sha256 = "4IMrd+jpRZw+vBXx4X89/B/Fdpiuy2hwtmQNGWQp0wM="; 179 + outputFiles = [ "lib/*" ]; 180 + postUnpack = '' 181 + chmod -R a+r $sourceRoot 182 + ''; 183 + 184 + meta = with lib; { 185 + description = "F# tools for generating documentation (Markdown processor and F# code formatter)"; 186 + homepage = "https://fsprojects.github.io/FSharp.Formatting/"; 187 + longDescription = '' 188 + The FSharp.Formatting package includes libraries and tools for processing F# script files, 189 + markdown and components for documentation generation. 190 + ''; 191 + license = licenses.asl20; 192 + maintainers = [ maintainers.ratsclub ]; 193 + }; 194 }; 195 196 NUnit3 = fetchNuGet {