jiebi/CodeConvo huggingface dataset:
Code change:
p7zip source is gone try to build without substituters cc
What commit are you having the issue from? it works for me at
Current master, that is sets to . There is no such tag at
Maybe the fork cleared the tags by force pushing?
Hmm, I wonder if all the changes got merged into with the fork then rebasing and force-pushing…
Yeah, looks like it. A bunch of jinfeihan57's commits are now in the commit history I'll change it to point back to p7zip-project's copy now

Related discussion:
text: <del> { stdenv, fetchFromGitHub, fetchpatch, lib, enableUnfree ? false }: </del> <ins> { lib, stdenv, fetchFromGitHub, enableUnfree ? false }: </ins> <del> stdenv.mkDerivation rec { </del> <ins> stdenv.mkDerivation (finalAttrs: { </ins> pname = "p7zip"; <del> version = "17.04"; </del> <ins> version = "17.05"; </ins> src = fetchFromGitHub { <del> owner  = "jinfeihan57"; repo   = pname; rev    = "v${version}"; </del> <ins> owner = "p7zip-project"; repo = "p7zip"; rev = "v${finalAttrs.version}"; </ins> sha256 = { <del> free = "sha256-DrBuf2VPdcprHI6pMSmL7psm2ofOrUf0Oj0qwMjXzkk="; unfree = "sha256-19F4hPV0nKVuFZNbOcXrcA1uW6Y3HQolaHVIYXGmh18="; </del> <ins> free = "sha256-5r7M9BVcAryZNTkqJ/BfHnSSWov1PwoZhUnLBwEbJoA="; unfree = "sha256-z3qXgv/TkNRbb85Ew1OcJNxoyssfzHShc0b0/4NZOb0="; </ins> }.${if enableUnfree then "unfree" else "free"}; # remove the unRAR related code from the src drv # > the license requires that you agree to these use restrictions,
Code change:
p7zip source is gone try to build without substituters cc
What commit are you having the issue from? it works for me at
Current master, that is sets to . There is no such tag at
Maybe the fork cleared the tags by force pushing?
Hmm, I wonder if all the changes got merged into with the fork then rebasing and force-pushing…
Yeah, looks like it. A bunch of jinfeihan57's commits are now in the commit history I'll change it to point back to p7zip-project's copy now

Related discussion:
text: --replace 'CXX=g++' 'CXX=${stdenv.cc.targetPrefix}g++' ''; <del> makeFlags = [ "DEST_HOME=${placeholder "out"}" ]; </del> preConfigure = '' buildFlags=all3 '' + lib.optionalString stdenv.isDarwin ''
Code change:
p7zip source is gone try to build without substituters cc
What commit are you having the issue from? it works for me at
Current master, that is sets to . There is no such tag at
Maybe the fork cleared the tags by force pushing?
Hmm, I wonder if all the changes got merged into with the fork then rebasing and force-pushing…
Yeah, looks like it. A bunch of jinfeihan57's commits are now in the commit history I'll change it to point back to p7zip-project's copy now

Related discussion:
text: ''; enableParallelBuilding = true; <ins> env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isClang "-Wno-error=c++11-narrowing"; </ins> <del> setupHook = ./setup-hook.sh; </del> <ins> makeFlags = [ "DEST_BIN=${placeholder "out"}/bin" "DEST_SHARE=${placeholder "lib"}/lib/p7zip" "DEST_MAN=${placeholder "man"}/share/man" "DEST_SHARE_DOC=${placeholder "doc"}/share/doc/p7zip" ]; </ins> <del> env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isClang "-Wno-error=c++11-narrowing"; </del> <ins> outputs = [ "out" "lib" "doc" "man" ]; setupHook = ./setup-hook.sh; </ins> passthru.updateScript = ./update.sh; meta = with lib; { <del> homepage = "https://github.com/jinfeihan57/p7zip"; </del> <ins> homepage = "https://github.com/p7zip-project/p7zip"; </ins> description = "A new p7zip fork with additional codecs and improvements (forked from https://sourceforge.net/projects/p7zip/)"; license = with licenses; # p7zip code is largely lgpl2Plus
Code change:
p7zip source is gone try to build without substituters cc
What commit are you having the issue from? it works for me at
Current master, that is sets to . There is no such tag at
Maybe the fork cleared the tags by force pushing?
Hmm, I wonder if all the changes got merged into with the fork then rebasing and force-pushing…
Yeah, looks like it. A bunch of jinfeihan57's commits are now in the commit history I'll change it to point back to p7zip-project's copy now

Related discussion:
text: platforms = platforms.unix; mainProgram = "7z"; }; <del> } </del> <ins> }) </ins>
Code change:
p7zip source is gone try to build without substituters cc
What commit are you having the issue from? it works for me at
Current master, that is sets to . There is no such tag at
Maybe the fork cleared the tags by force pushing?
Hmm, I wonder if all the changes got merged into with the fork then rebasing and force-pushing…
Yeah, looks like it. A bunch of jinfeihan57's commits are now in the commit history I'll change it to point back to p7zip-project's copy now

Related discussion:
text: OLD_VERSION="$(sed -nE 's/s*version = "(.*)".*/1/p' ./default.nix)" <del> NEW_VERSION="$(curl https://api.github.com/repos/jinfeihan57/p7zip/releases/latest | jq .tag_name -r | tr -d 'v')" </del> <ins> NEW_VERSION="$(curl https://api.github.com/repos/p7zip-project/p7zip/releases/latest | jq .tag_name -r | tr -d 'v')" </ins> echo "comparing versions $OLD_VERSION => $NEW_VERSION" if [[ "$OLD_VERSION" == "$NEW_VERSION" ]]; then
Code change:
Project description CryptPad is a collaborative office suite that is end-to-end encrypted and open-source. Enable this a service for NixOS. Metadata homepage URL: source URL: license: agpl2 platforms: unix, linux, darwin, ...
CryptPad used to be included in nixpkgs, but it was removed because there weren't enough maintainers. The removal occurred with the commits and .
Not quite true: it was removed because they had a strong dependency on out-of-date software. . Now, there is an ongoing effort to re-introduce it in : .

Related discussion:
text: - [Localsend](https://localsend.org/), an open source cross-platform alternative to AirDrop. Available as [programs.localsend](#opt-programs.localsend.enable). <ins> - [cryptpad](https://cryptpad.org/), a privacy-oriented collaborative platform (docs/drive/etc), has been added back. Available as [services.cryptpad](#opt-services.cryptpad.enable). </ins> - [realm](https://github.com/zhboner/realm), a simple, high performance relay server written in rust. Available as [services.realm.enable](#opt-services.realm.enable). - [Playerctld](https://github.com/altdesktop/playerctl), a daemon to track media player activity. Available as [services.playerctld](option.html#opt-services.playerctld).
Code change:
Project description CryptPad is a collaborative office suite that is end-to-end encrypted and open-source. Enable this a service for NixOS. Metadata homepage URL: source URL: license: agpl2 platforms: unix, linux, darwin, ...
CryptPad used to be included in nixpkgs, but it was removed because there weren't enough maintainers. The removal occurred with the commits and .
Not quite true: it was removed because they had a strong dependency on out-of-date software. . Now, there is an ongoing effort to re-introduce it in : .

Related discussion:
text: ./services/web-apps/convos.nix ./services/web-apps/crabfit.nix ./services/web-apps/davis.nix <ins> ./services/web-apps/cryptpad.nix </ins> ./services/web-apps/dex.nix ./services/web-apps/discourse.nix ./services/web-apps/documize.nix
Code change:
Project description CryptPad is a collaborative office suite that is end-to-end encrypted and open-source. Enable this a service for NixOS. Metadata homepage URL: source URL: license: agpl2 platforms: unix, linux, darwin, ...
CryptPad used to be included in nixpkgs, but it was removed because there weren't enough maintainers. The removal occurred with the commits and .
Not quite true: it was removed because they had a strong dependency on out-of-date software. . Now, there is an ongoing effort to re-introduce it in : .

Related discussion:
text: (mkRemovedOptionModule [ "services" "virtuoso" ] "The corresponding package was removed from nixpkgs.") (mkRemovedOptionModule [ "services" "openfire" ] "The corresponding package was removed from nixpkgs.") (mkRemovedOptionModule [ "services" "riak" ] "The corresponding package was removed from nixpkgs.") <del> (mkRemovedOptionModule [ "services" "cryptpad" ] "The corresponding package was removed from nixpkgs.") </del> (mkRemovedOptionModule [ "services" "rtsp-simple-server" ] "Package has been completely rebranded by upstream as mediamtx, and thus the service and the package were renamed in NixOS as well.") (mkRemovedOptionModule [ "services" "prayer" ] "The corresponding package was removed from nixpkgs.") (mkRemovedOptionModule [ "services" "restya-board" ] "The corresponding package was removed from nixpkgs.")
Code change:
Project description CryptPad is a collaborative office suite that is end-to-end encrypted and open-source. Enable this a service for NixOS. Metadata homepage URL: source URL: license: agpl2 platforms: unix, linux, darwin, ...
CryptPad used to be included in nixpkgs, but it was removed because there weren't enough maintainers. The removal occurred with the commits and .
Not quite true: it was removed because they had a strong dependency on out-of-date software. . Now, there is an ongoing effort to re-introduce it in : .

Related discussion:
text: couchdb = handleTest ./couchdb.nix {}; crabfit = handleTest ./crabfit.nix {}; cri-o = handleTestOn ["aarch64-linux" "x86_64-linux"] ./cri-o.nix {}; <ins> cryptpad = runTest ./cryptpad.nix; </ins> cups-pdf = handleTest ./cups-pdf.nix {}; curl-impersonate = handleTest ./curl-impersonate.nix {}; custom-ca = handleTest ./custom-ca.nix {};
Code change:
Project description CryptPad is a collaborative office suite that is end-to-end encrypted and open-source. Enable this a service for NixOS. Metadata homepage URL: source URL: license: agpl2 platforms: unix, linux, darwin, ...
CryptPad used to be included in nixpkgs, but it was removed because there weren't enough maintainers. The removal occurred with the commits and .
Not quite true: it was removed because they had a strong dependency on out-of-date software. . Now, there is an ongoing effort to re-introduce it in : .

Related discussion:
text: <ins> { pkgs, ... }: let certs = pkgs.runCommand "cryptpadSelfSignedCerts" { buildInputs = [ pkgs.openssl ]; } '' mkdir -p $out cd $out openssl req -x509 -newkey rsa:4096  -keyout key.pem -out cert.pem -nodes -days 3650  -subj '/CN=cryptpad.localhost'  -addext 'subjectAltName = DNS.1:cryptpad.localhost, DNS.2:cryptpad-sandbox.localhost' ''; # data sniffed from cryptpad's /checkup network trace, seems to be re-usable test_write_data = pkgs.writeText "cryptpadTestData" '' {"command":"WRITE_BLOCK","content":{"publicKey":"O2onvM62pC1io6jQKm8Nc2UyFXcd4kOmOsBIoYtZ2ik=","signature":"aXcM9SMO59lwA7q7HbYB+AnzymmxSyy/KhkG/cXIBVzl8v+kkPWXmFuWhcuKfRF8yt3Zc3ktIsHoFyuyDSAwAA==","ciphertext":"AFwCIfBHKdFzDKjMg4cu66qlJLpP+6Yxogbl3o9neiQou5P8h8yJB8qgnQ=="},"publicKey":"O2onvM62pC1io6jQKm8Nc2UyFXcd4kOmOsBIoYtZ2ik=","nonce":"bitSbJMNSzOsg98nEzN80a231PCkBQeH"} ''; in { name = "cryptpad"; meta = with pkgs.lib.maintainers; { maintainers = [ martinetd ]; }; nodes.machine = { services.cryptpad = { enable = true; configureNginx = true; settings = { httpUnsafeOrigin = "https://cryptpad.localhost"; httpSafeOrigin = "https://cryptpad-sandbox.localhost"; }; }; services.nginx = { virtualHosts."cryptpad.localhost" = { enableACME = false; sslCertificate = "${certs}/cert.pem"; sslCertificateKey = "${certs}/key.pem"; }; }; security = { pki.certificateFiles = [ "${certs}/cert.pem" ]; }; }; testScript = '' machine.wait_for_unit("cryptpad.service") machine.wait_for_unit("nginx.service") machine.wait_for_open_port(3000) # test home page machine.succeed("curl --fail https://cryptpad.localhost -o /tmp/cryptpad_home.html") machine.succeed("grep -F 'CryptPad: Collaboration suite' /tmp/cryptpad_home.html") # test scripts/build.js actually generated customize content from config machine.succeed("grep -F 'meta property="og:url" content="https://cryptpad.localhost/index.html' /tmp/cryptpad_home.html") # make sure child pages are accessible (e.g. check nginx try_files paths) machine.succeed( "grep -oE '/(customize|components)[^"]*' /tmp/cryptpad_home.html" "  | while read -r page; do" "        curl -O --fail https://cryptpad.localhost$page || exit;" "    done") # test some API (e.g. check cryptpad main process) machine.succeed("curl --fail -d @${test_write_data} -H 'Content-Type: application/json' https://cryptpad.localhost/api/auth") # test telemetry has been disabled machine.fail("journalctl -u cryptpad | grep TELEMETRY"); # for future improvements machine.log(machine.execute("systemd-analyze security cryptpad.service")[1]) ''; } </ins>
Code change:
Project description CryptPad is a collaborative office suite that is end-to-end encrypted and open-source. Enable this a service for NixOS. Metadata homepage URL: source URL: license: agpl2 platforms: unix, linux, darwin, ...
CryptPad used to be included in nixpkgs, but it was removed because there weren't enough maintainers. The removal occurred with the commits and .
Not quite true: it was removed because they had a strong dependency on out-of-date software. . Now, there is an ongoing effort to re-introduce it in : .

Related discussion:
text: <ins> From 4bf0be64fe51a9c9fd9e410ada15251378b743bf Mon Sep 17 00:00:00 2001 From: Dominique Martinet <asmadeus@codewreck.org> Date: Sat, 26 Aug 2023 09:28:59 +0900 Subject: [PATCH] env.js: fix httpSafePort handling It has been clarified that this is only a dev option that should not be used in production, but setting the value in config was still ignored, so fix the init code to consider the config value and make it clear that this port is not bound if safeOrigin is set. --- config/config.example.js | 3 ++- lib/env.js               | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/config/config.example.js b/config/config.example.js index 7c8184c6c2f6..77263643c354 100644 --- a/config/config.example.js +++ b/config/config.example.js @@ -89,8 +89,9 @@ module.exports = { /*  httpSafePort purpose is to emulate another origin for the sandbox when *  you don't have two domains at hand (i.e. when httpSafeOrigin not defined). - *  It is meant to be used only in case where you are working on a local + *  It is meant to be used only in case where you are working on a local *  development instance. The default value is your httpPort + 1. + *  Setting this to 0 or setting httpSafeOrigin disables this listener. * */ //httpSafePort: 3001, diff --git a/lib/env.js b/lib/env.js index d3748750f21e..f0660cba3e11 100644 --- a/lib/env.js +++ b/lib/env.js @@ -74,8 +74,9 @@ module.exports.create = function (config) { if (typeof(config.httpSafeOrigin) !== 'string') { NO_SANDBOX = true; -        if (typeof(config.httpSafePort) !== 'number') { httpSafePort = httpPort + 1; } httpSafeOrigin = deriveSandboxOrigin(httpUnsafeOrigin, httpSafePort); +        // only set if httpSafeOrigin isn't set. +        httpSafePort = isValidPort(config.httpSafePort) ? config.httpSafePort : (httpPort + 1); } else { httpSafeOrigin = canonicalizeOrigin(config.httpSafeOrigin); } @@ -115,7 +116,7 @@ module.exports.create = function (config) { permittedEmbedders: typeof(permittedEmbedders) === 'string' && permittedEmbedders? permittedEmbedders: httpSafeOrigin, removeDonateButton: config.removeDonateButton, -        httpPort: isValidPort(config.httpPort)? config.httpPort: 3000, +        httpPort: httpPort, httpAddress: typeof(config.httpAddress) === 'string'? config.httpAddress: 'localhost', websocketPath: config.externalWebsocketURL, logIP: config.logIP, -- 2.45.2 </ins>
Code change:
Package name: mathematica Latest released version: 13.2.0 <!-- Search your package here: --- Current version on the unstable channel: 13.2.0 Current version on the stable/release channel: 9.0.0 <!-- Type the name of your package and try to find an open pull request for the package If you find an open pull request, you can review it! There's a high chance that you'll have the new version right away while helping the community! --- Notify maintainers <!-- If the result shows no maintainers, tag the person that last updated the package. --Note for maintainers: Please tag this issue in your PR.
No need to open an issue for every package update PR that you're about to file.

Related discussion:
text: let versions = [ { <ins> version = "13.2.1"; lang = "en"; language = "English"; sha256 = "sha256-GA2k+jvE4mTJsIbMHce5c516h/glHLnXdthEfnNmk0w="; installer = "Mathematica_13.2.1_LINUX.sh"; } { version = "13.2.1"; lang = "en"; language = "English"; sha256 = "sha256-ZvgG2W/gjQIo4hyXHsGta5FyTslrz/ltOe/ZK/U2Sx8="; installer = "Mathematica_13.2.1_BNDL_LINUX.sh"; } { </ins> version = "13.2.0"; lang = "en"; language = "English";
Code change:
Steps to reproduce the behavior: -env -i gotop Happy to provide more info if needed. <!-- Please @ people who are in the list of the offending package or module. If in doubt, check for whoever last touched something. --Please run and paste the result.
Maybe we can apply as a patch.
can you try latest master ? gotop 4.2.0 should aleady contain patch mentioned by

Related discussion:
text: ldflags = [ "-s" "-w" "-X main.Version=v${version}" ]; <ins> # prevent `error: 'TARGET_OS_MAC' is not defined` env.CGO_CFLAGS = "-Wno-undef-prefix"; </ins> nativeBuildInputs = [ installShellFiles ]; buildInputs = lib.optionals stdenv.isDarwin [ IOKit ];
Code change:
Linux app for streaming music from YouTube. <!-- Monophony is a free and open source Linux app for streaming music from YouTube. It has no ads and does not require an account. --Metadata homepage URL: source URL: license: mit platforms: linux
I'd be interested in doing this if its not too hard, I'll look into it.
The package is almost done, had some complications including unpackaged dependencies, but it should be good to go within the next few days.
Just waiting for a merge now.

Related discussion:
text: <ins> { lib , fetchFromGitLab , python3Packages , wrapGAppsHook4 , gst_all_1 , gobject-introspection , yt-dlp , libadwaita , libsoup_3 , glib-networking }: python3Packages.buildPythonApplication rec { pname = "monophony"; version = "2.3.1"; format = "other"; sourceRoot = "source/source"; src = fetchFromGitLab { owner = "zehkira"; repo = "monophony"; rev = "v${version}"; hash = "sha256-dpRTHsujaIwzgr+qY5LC9xtXz40g3akdpEiHuxiilZM="; }; pythonPath = with python3Packages; [ mpris-server pygobject3 ytmusicapi ]; nativeBuildInputs = [ python3Packages.nuitka gobject-introspection wrapGAppsHook4 ]; buildInputs = [ libadwaita # needed for gstreamer https libsoup_3 glib-networking ] ++ (with gst_all_1; [ gst-plugins-base gst-plugins-good gstreamer ]); installFlags = [ "prefix=$(out)" ]; preFixup = '' buildPythonPath "$pythonPath" gappsWrapperArgs+=( --prefix PYTHONPATH : "$program_PYTHONPATH" --prefix PATH : "${lib.makeBinPath [yt-dlp]}" # needed for gstreamer https --prefix LD_LIBRARY_PATH : "${libsoup_3.out}/lib" ) ''; meta = with lib; { homepage = "https://gitlab.com/zehkira/monophony"; description = "Linux app for streaming music from YouTube"; longDescription = "Monophony is a free and open source Linux app for streaming music from YouTube. It has no ads and does not require an account."; license = licenses.agpl3Plus; mainProgram = "monophony"; platforms = platforms.linux; maintainers = with maintainers; [ quadradical ]; }; } </ins>
Code change:
Linux app for streaming music from YouTube. <!-- Monophony is a free and open source Linux app for streaming music from YouTube. It has no ads and does not require an account. --Metadata homepage URL: source URL: license: mit platforms: linux
I'd be interested in doing this if its not too hard, I'll look into it.
The package is almost done, had some complications including unpackaged dependencies, but it should be good to go within the next few days.
Just waiting for a merge now.

Related discussion:
text: <ins> { lib , buildPythonPackage , fetchPypi , emoji , pydbus , pygobject3 , unidecode , setuptools }: buildPythonPackage rec { pname = "mpris-server"; version = "0.4.2"; pyproject = true; src = fetchPypi { pname = "mpris_server"; inherit version; hash = "sha256-p3nM80fOMtRmeKvOXuX40Fu9xH8gPgYyneXbUS678fE="; }; nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ emoji pydbus pygobject3 unidecode ]; pythonImportsCheck = [ "mpris_server" ]; # upstream has no tests doCheck = false; meta = with lib; { description = "Publish a MediaPlayer2 MPRIS device to D-Bus"; homepage = "https://pypi.org/project/mpris-server/"; license = licenses.agpl3Only; maintainers = with maintainers; [ quadradical ]; }; } </ins>
Code change:
Linux app for streaming music from YouTube. <!-- Monophony is a free and open source Linux app for streaming music from YouTube. It has no ads and does not require an account. --Metadata homepage URL: source URL: license: mit platforms: linux
I'd be interested in doing this if its not too hard, I'll look into it.
The package is almost done, had some complications including unpackaged dependencies, but it should be good to go within the next few days.
Just waiting for a merge now.

Related discussion:
text: mpmath = callPackage ../development/python-modules/mpmath { }; <ins> mpris-server = callPackage ../development/python-modules/mpris-server { }; </ins> mpv = callPackage ../development/python-modules/mpv { inherit (pkgs) mpv; };
Code change:
I'm trying to do something similar to the following: Apparently, however, does not translate the Nix list into a Bash array as I'd expect. I see the following error: Add to the attributes which contains a argument with whitespace. For example: This results in a bash array with the following items (one per line): Use the following patch to print the array members: Please run and paste the result.
Using flags with spaces as a derivation attribute can . I'd append to in , as explained in the link:
Thanks for your comment. That's frustrating. I wonder if should have an argument at all, if it works sometimes. Also, I think manipulating in does not work as the defined by run first.
Spaces can be supported if some quoting is to : This is also how it's done in Python's build-support:

Related discussion:
text: # Inherit arguments from the derivation <del> makeWrapperArgs=( ${makeWrapperArgs-} ) </del> <ins> declare -a derivationMakeWrapperArgs="( ${makeWrapperArgs-} )" makeWrapperArgs=( "${derivationMakeWrapperArgs[@]}" ) </ins> # First argument is the executable you want to wrap, # the second is the destination for the wrapper.
Code change:
While rebuilding on this system that requires the package a failure while building has been occurring since NixOS 22.11. One of the tests fails.
I am not the maintainer of this package. Maybe can help? also have a look at:
Silly me for not checking and just the current release, disabling tests is a hell of a workaround but definitely works!
I'm also not a maintainer of the package, but I'm happy to fix it nonetheless :) There's an issue in that we don't have a good way of setting HDF5PLUGINPATH appropriately. Maybe I'll come back and fix this at some point, but for now this will do...

Related discussion:
text: nativeBuildInputs = [ cmake ninja ]; buildInputs = [ netcdf hdf5 curl ]; <del> # 10 - cxx4_test_filter (Failed) # Setting Filter....Caught unexpected exception. doCheck = false; </del> <ins> doCheck = true; </ins> enableParallelChecking = false; <ins> preCheck = '' export HDF5_PLUGIN_PATH=${netcdf}/lib/hdf5-plugins ''; </ins> meta = { description = "C++ API to manipulate netcdf files";
Code change:
While rebuilding on this system that requires the package a failure while building has been occurring since NixOS 22.11. One of the tests fails.
I am not the maintainer of this package. Maybe can help? also have a look at:
Silly me for not checking and just the current release, disabling tests is a hell of a workaround but definitely works!
I'm also not a maintainer of the package, but I'm happy to fix it nonetheless :) There's an issue in that we don't have a good way of setting HDF5PLUGINPATH appropriately. Maybe I'll come back and fix this at some point, but for now this will do...

Related discussion:
text: { lib, stdenv , fetchurl, unzip , hdf5 <ins> , bzip2 , libzip , zstd , szipSupport ? false , szip </ins> , libxml2 , m4 , curl # for DAP