!lZLfSUtSOVjwYTmPbU:nixos.org

nixpkgs-update

148 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.nix42 Servers

You have reached the beginning of time (for this room).


SenderMessageTime
25 Dec 2024
@xiaoxiangmoe:matrix.org🐰 xiaoxiangmoe Maybe I should create a PR for fetchFromGitHub to support update both CI_COMMIT_SHA and version? 18:36:57
@k900:0upti.meK900No, we should not be encouraging people to hardcode git revisions in random places18:39:47
@xiaoxiangmoe:matrix.org🐰 xiaoxiangmoe

How about this?

  src = fetchFromGitHub {
    owner = "konoui";
    repo = "lipo";
    tag = "v${version}";
    rev = "4f0dadbf38ee4cf4cc38cbc232b7708fddf965bc";
    hash = "sha256-lZgOoN+oibo2h6bw5KHXuiwQvQecTQiqu400sGfaMi0=";
  }
18:41:27
@k900:0upti.meK900That is completely duplicate information18:41:58
@xiaoxiangmoe:matrix.org🐰 xiaoxiangmoetag may change18:42:18
@xiaoxiangmoe:matrix.org🐰 xiaoxiangmoerev is the only source of truth18:42:27
@k900:0upti.meK900Then you shouldn't provide the tag18:42:39
@xiaoxiangmoe:matrix.org🐰 xiaoxiangmoeBut the tag is needed for version18:42:58
@xiaoxiangmoe:matrix.org🐰 xiaoxiangmoenixpkg need version field18:43:06
@k900:0upti.meK900Look18:43:11
@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

Show newer messages


Back to Room ListRoom Version: 9