-
-
Notifications
You must be signed in to change notification settings - Fork 15k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
lumafly: use dotnet sdk 9 as sdk 7 has been marked insecure #360640
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, changes LGTM and GUI opens.
Some nits, feel free to ignore if you feel it is not important or out of scope:
- currently the
bin
folder not only containsLumafly
, but a bunch of DLLs that doesn't need to be there and can cause conflicts with other packages having the same DLLs which is not that unlikely. To fix it you can add this:executables = [ "Lumafly" ];
- format the changed file:
nix run nixpkgs/nixos-unstable#nixfmt-rfc-style -- -- pkgs/by-name/lu/lumafly/package.nix
- the desktop item's
comment
references ameta
attribute, in case someone changesmeta.description
(eg. in a treewide commit affecting many 100s of packages), this package would be rebuilt which shouldn't happen. Consider hard coding it - in
fetchFromGitHub
'srev
specify that we expect a git tag:rev = "refs/tags/v${version}";
nixpkgs-review
result
Generated using nixpkgs-review
.
Command: nixpkgs-review pr 360640
x86_64-linux
✅ 1 package built:
- lumafly
@gepbird I made the edits, thanks! $ git clone -b --depth=1 git@github.com:rohanssrao/nixpkgs.git && cd nixpkgs
$ git rebase -i HEAD~3
fatal: invalid upstream 'HEAD~3'
$ git log
commit f37ceed67a971f506fac3dbc3c3f100d979f36be (grafted, HEAD -> patch-1, origin/patch-1)
Author: rohanssrao <rohanssrao@gmail.com>
Date: Wed Dec 4 21:18:07 2024 -0500
Merge branch 'NixOS:master' into patch-1 It seems like I can only see the last commit. |
Thanks, changes LGTM but I'll test it later.
That's what |
@gepbird Appreciate it! I guess I shouldn't have synced the fork between my commits because I had to clone to a depth of 230 which took a while lol. git add pkgs/by-name/lu/lumafly/package.nix
git commit --amend --no-edit
git push --force and that worked! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
nixpkgs-review
result
Generated using nixpkgs-review
.
Command: nixpkgs-review pr 360640
x86_64-linux
✅ 1 package built:
- lumafly
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry for bothering again with extra nits and suggestions, again feel free to ignore:
- you could add an
passthru.updateScript
, this should be sufficient:
#!/usr/bin/env nix-shell
#!nix-shell --pure -i bash -p bash nix nix-update git cacert
set -eo pipefail
nix-update lumafly
$(nix-build . -A lumafly.fetch-deps --no-out-link)
7346da1
to
3f65a0c
Compare
Done! |
@gepbird it occurred to me after we discussed this, that maybe it was a bad idea. Will this result in |
Unfortunately yes :( Should we stick the the old method where we get the current and latest version, exit if they are the same, else run update-source-version (or nix-update) and the fetch-deps script or do you have a nicer idea? |
Running fetch-deps all the time is not going to break updates, it's just a waste of resources for whoever is running the automated update jobs. I don't know how that infrastructure works, so I'm not sure how big a problem it is.
I think we could get the version from the derivation before and after calling I'd need to do some investigation to know if a better way is possible. |
@rohanssrao could we do this: diff --git a/pkgs/by-name/lu/lumafly/package.nix b/pkgs/by-name/lu/lumafly/package.nix
index 8a05f70ba1c0..910ab26ab4bf 100644
--- a/pkgs/by-name/lu/lumafly/package.nix
+++ b/pkgs/by-name/lu/lumafly/package.nix
@@ -39,8 +39,10 @@ buildDotnetModule rec {
#!nix-shell --pure -i bash -p bash nix nix-update git cacert
set -eo pipefail
+ prev_version=$(nix eval --raw -f. lumafly.version)
nix-update lumafly
- $(nix-build . -A lumafly.fetch-deps --no-out-link)
+ [[ $(nix eval --raw -f. lumafly.version) == "$prev_version" ]] ||
+ $(nix-build . -A lumafly.fetch-deps --no-out-link)
'';
runtimeDeps = [ to avoid running fetch-deps when the package is up to date? I did some testing and it seems to work okay. |
Done! |
Successfully created backport PR for |
This is a temporary patch until TheMulhima/Lumafly#134 is merged and a release is made.
Things done
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)Add a 👍 reaction to pull requests you find important.