!lZLfSUtSOVjwYTmPbU:nixos.org

nixpkgs-update

126 Members
Keeping nixpkgs up to date. r-ryantm bot. https://github.com/ryantm/nixpkgs-update and https://github.com/nix-community/infra/blob/master/build02/nixpkgs-update.nix39 Servers

Load older messages


SenderMessageTime
25 Dec 2024
@k900:0upti.meK900We can't be making accommodations in nixpkgs for every stupid decision an upstream makes18:43:29
@xiaoxiangmoe:matrix.org🐰 xiaoxiangmoeOkay18:43:50
@xiaoxiangmoe:matrix.org🐰 xiaoxiangmoe Also, builtins.fetchGit { url= "https://github.com/konoui/lipo.git"; } can provide lastModified, lastModifiedDate, rev, shortRev attr 18:47:52
@xiaoxiangmoe:matrix.org🐰 xiaoxiangmoeShould fetchFromGitHub also provide this?18:48:04
@xiaoxiangmoe:matrix.org🐰 xiaoxiangmoe
nix-repl> builtins.fetchGit { url= "https://github.com/konoui/lipo.git"; } 
copying '«git+https://github.com/konoui/lipo.git?exportIgnore=1&ref=refs/heads/main&rev=d405c7e62772120bf98ea326b26799bde8d5a128»«unkn{
  lastModified = 1735092575;
  lastModifiedDate = "20241225020935";
  narHash = "sha256-T4V6VDjwMJ1/uopxbotrCgjNkG8lc3ecYKWRjqT3GnU=";
  outPath = "/nix/store/na175bylllrcnn0yq8irfj9q7w3xhh2k-source";
  rev = "d405c7e62772120bf98ea326b26799bde8d5a128";
  revCount = 134;
  shortRev = "d405c7e";
  submodules = false;
}
18:48:28
@me:linj.techlinj
In reply to @k900:0upti.me
Not guaranteed, technically
I am curious why removing .git does not guarante reproducibility. Could you elaborate?
18:52:23
@xiaoxiangmoe:matrix.org🐰 xiaoxiangmoe Also, I'm curious whether passthru.updateScript will work for unfree apps or not. I found passthru.tests will not run in nixpkgs ci for unfree apps. 18:57:23
@xiaoxiangmoe:matrix.org🐰 xiaoxiangmoe * Also, I'm curious whether r-ryantm bot will run passthru.updateScript for unfree apps or not. I found passthru.tests will not run in nixpkgs ci for unfree apps. 18:58:21
@k900:0upti.meK900
In reply to@xiaoxiangmoe:matrix.org
Also, I'm curious whether r-ryantm bot will run passthru.updateScript for unfree apps or not. I found passthru.tests will not run in nixpkgs ci for unfree apps.
It will
19:04:28
@k900:0upti.meK900As long as those apps are listed on repology19:04:35
@k900:0upti.meK900
In reply to@me:linj.tech
I am curious why removing .git does not guarante reproducibility. Could you elaborate?
All kinds of possible filter weirdness
19:04:45
@perchun:matrix.orgPerchun Pakhttps://github.com/NixOS/nixpkgs/issues/856719:05:01
@perchun:matrix.orgPerchun Pakyou don't have to, just set it to an empty string or fetch it using an update script19:06:22
@me:linj.techlinj
In reply to @perchun:matrix.org
https://github.com/NixOS/nixpkgs/issues/8567
I failed to find an answer for my question without clicking "load more" and there are too many comments. Could you provide a more specific link?
19:07:19
@perchun:matrix.orgPerchun Paktldr is that hash sometimes changes without any reason, and it triggers a build failure19:08:07
@me:linj.techlinj
In reply to @perchun:matrix.org
https://github.com/NixOS/nixpkgs/issues/8567
The last comment says removing .git is a valid use case. https://github.com/NixOS/nixpkgs/issues/8567#issuecomment-2398540893
19:08:56
@perchun:matrix.orgPerchun Pakthen ig it is indeed valid, but still I would avoid it if possible19:09:35
@perchun:matrix.orgPerchun Pakhere - it is possible19:09:46
26 Dec 2024
@10leej:matrix.orgnevoyu left the room.01:50:48
27 Dec 2024
@raitobezarius:matrix.orgraitobezarius (DECT: 3538 / EPVPN 2681) changed their display name from raitobezarius to raitobezarius (DECT: 3538 / EPVPN 2681).07:31:31
@dimitarnestorov:matrix.orgDimitar set a profile picture.11:41:20
@dimitarnestorov:matrix.orgDimitar changed their display name from dimitarnestorov to Dimitar.11:42:01
28 Dec 2024
@xiaoxiangmoe:matrix.org🐰 xiaoxiangmoe I found some package use nix shell in update script 17:02:58
@xiaoxiangmoe:matrix.org🐰 xiaoxiangmoe

Such as pkgs/applications/editors/emacs/elisp-packages/update-from-overlay.flake.sh

#!/usr/bin/env nix
#! nix shell nixpkgs#bash nixpkgs#curl nixpkgs#nix nixpkgs#coreutils --command bash
set -xeuo pipefail

# Since flakes are not stable yet, we can't suppose everyone is using them.
# Therefore, the original ./update-from-overlay should not be modified.
# So, let's create a wrapper!

source ./update-from-overlay
17:03:31
@xiaoxiangmoe:matrix.org🐰 xiaoxiangmoe

pkgs/by-name/pr/protoc-gen-es/update.sh

#! /usr/bin/env -S nix shell nixpkgs#gnugrep nixpkgs#gnused nixpkgs#coreutils nixpkgs#curl nixpkgs#wget nixpkgs#jq nixpkgs#nix-update nixpkgs#prefetch-npm-deps nixpkgs#npm-lockfile-fix nixpkgs#nodejs --command bash
17:04:13
@xiaoxiangmoe:matrix.org🐰 xiaoxiangmoe So, can we use nix shell in nix update script? 17:04:42
@xiaoxiangmoe:matrix.org🐰 xiaoxiangmoehttps://nix.dev/manual/nix/2.22/command-ref/new-cli/nix3-shell#use-as-a--interpreter17:05:20
@k900:0upti.meK900Well we don't have a rule that says you can't 17:06:06
@k900:0upti.meK900But you probably shouldn't 17:06:09
@k900:0upti.meK900Especially now that there are Nix implementations out there that will probably never get this feature 17:06:33

There are no newer messages yet.


Back to Room ListRoom Version: 9