···11+22+# lib/deprecated33+44+Do not add any new functions to this directory.55+66+This directory contains the `lib.misc` sublibrary, which - as a location - is deprecated.77+Furthermore, some of the functions inside are of *dubious* utility, and should perhaps be avoided,88+while some functions *may still be needed*.99+1010+This directory does not play a role in the deprecation process for library functions.1111+They should be deprecated in place, by putting a `lib.warn` or `lib.warnIf` call around the function.
···2525 sha256 = "BpHqJfnGOeTE7tkFJBx0Wk8ryalmf4KNTit/Coh026E=";2626 };27272828- # Why do we have splicing and yet do `nativeBuildInputs = with self; ...`?2929- # See note in ../netbsd/default.nix.3030-3128 compatIfNeeded = lib.optional (!stdenvNoCC.hostPlatform.isFreeBSD) self.compat;3232-3329 freebsd-lib = import ./lib { inherit version; };34303535- # Overridden arguments avoid cross package-set splicing issues,3636- # otherwise would just use implicit3737- # `lib.packagesFromDirectoryRecursive` auto-call.3131+ # The manual callPackages below should in principle be unnecessary, but are3232+ # necessary. See note in ../netbsd/default.nix38333934 compat = self.callPackage ./pkgs/compat/package.nix {4035 inherit stdenv;
···11+{ mkDerivation, defaultMakeFlags }:22+33+mkDerivation {44+ path = "share/man";55+ noCC = true;66+ version = "9.2";77+ sha256 = "1l4lmj4kmg8dl86x94sr45w0xdnkz8dn4zjx0ipgr9bnq98663zl";88+ # man0 generates a man.pdf using ps2pdf, but doesn't install it later,99+ # so we can avoid the dependency on ghostscript1010+ postPatch = ''1111+ substituteInPlace $COMPONENT_PATH/man0/Makefile --replace "ps2pdf" "echo noop "1212+ '';1313+ makeFlags = defaultMakeFlags ++ [1414+ "FILESDIR=$(out)/share"1515+ "MKRUMP=no" # would require to have additional path sys/rump/share/man1616+ ];1717+}
···11+{ makeSetupHook, writeText, stat }:22+33+# stat isn't in POSIX, and NetBSD stat supports a completely44+# different range of flags than GNU stat, so including it in PATH55+# breaks stdenv. Work around that with a hook that will point66+# NetBSD's build system and NetBSD stat without including it in77+# PATH.88+99+makeSetupHook {1010+ name = "netbsd-stat-hook";1111+} (writeText "netbsd-stat-hook-impl" ''1212+ makeFlagsArray+=(TOOL_STAT=${stat}/bin/stat)1313+'')1414+
+19
pkgs/os-specific/bsd/netbsd/pkgs/stat/package.nix
···11+{ mkDerivation22+, bsdSetupHook, netbsdSetupHook33+, makeMinimal44+, install, mandoc, groff, rsync55+}:66+77+# Don't add this to nativeBuildInputs directly.88+# Use statHook instead. See note in stat/hook.nix99+1010+mkDerivation {1111+ path = "usr.bin/stat";1212+ version = "9.2";1313+ sha256 = "18nqwlndfc34qbbgqx5nffil37jfq9aw663ippasfxd2hlyc106x";1414+ nativeBuildInputs = [1515+ bsdSetupHook netbsdSetupHook1616+ makeMinimal1717+ install mandoc groff rsync1818+ ];1919+}
···2525 # However, the version string is more useful for end-users.2626 # These are contained in a attrset of their own to make it obvious that2727 # people should update both.2828- version = "1.27.3";2929- rev = "0fd81ee7ffcd7cfc864094b24dc9b5c3ade89ff2";3030- hash = "sha256-WNyyUw3517oKqMd1sJMk9CiLa/V7UrhwlRS+AWNNOOo=";2828+ version = "1.27.5";2929+ rev = "be4f1cfd31c79fc05651efa2f88429b3c03d1d9e";3030+ hash = "sha256-+sjNqq91YfyW83aq/8WoSo7Jl5QZUmtWtsajnLLMgDc=";3131 };32323333 # these need to be updated for any changes to fetchAttrs3434 depsHash = {3535- x86_64-linux = "sha256-wTGHfeFkCuijPdX//lT5GPspaxZsxzBHJffH1tpVM2w=";3636- aarch64-linux = "sha256-9/Wem+Gk/7bFeMNFC4J3mdTm3mrNmyMxiu5oadQcovU=";3535+ x86_64-linux = "sha256-4XJgPfNEPmbvAZMLlQcnIaoGzaFtyhsuEshdEjLh0OY=";3636+ aarch64-linux = "sha256-85HLiK+xX/tabazh97J4fWk5KYc7kynbxj/g8HCGTD4=";3737 }.${stdenv.system} or (throw "unsupported system ${stdenv.system}");3838in3939buildBazelPackage {···179179 # | ^180180 "--define=tcmalloc=disabled"181181 ]);182182+182183 bazelFetchFlags = [183184 "--define=wasm=${wasmRuntime}"185185+186186+ # https://github.com/bazelbuild/rules_go/issues/3844187187+ "--repo_env=GOPROXY=https://proxy.golang.org,direct"188188+ "--repo_env=GOSUMDB=sum.golang.org"184189 ];185190186191 passthru.tests = {···202197 license = licenses.asl20;203198 maintainers = with maintainers; [ lukegb ];204199 platforms = [ "x86_64-linux" "aarch64-linux" ];205205- knownVulnerabilities = [ "CVE-2024-30255" ];206200 };207201}
···3131 origurl = repourl3232 if '/' in name or ' ' in name:3333 name = os.path.split(path)[-1].removesuffix('.yaml')3434- name = name.replace('_', '-')3434+ name = name.replace('_', '-').lower()3535 if name in PLUGINS.keys():3636 raise ValueError(f'Duplicate plugin {name}, refusing to continue')3737 repodir = os.path.join(TMP, 'maubot-plugins', name)