Repository navigation
podman-desktop: add darwin to platforms for non darwin platforms - #412303
mio-aotearoa wants to merge 2 commits into
Conversation
podman-desktop builds and runs on my darwin device
|
What am I missing? $ nix eval .#podman-desktop.meta --json | jq
{
"available": true,
"broken": false,
"changelog": "https://github.com/containers/podman-desktop/releases/tag/v1.19.1",
"description": "Graphical tool for developing on containers and Kubernetes",
"homepage": "https://podman-desktop.io",
"insecure": false,
"license": {
"deprecated": false,
"free": true,
"fullName": "Apache License 2.0",
"redistributable": true,
"shortName": "asl20",
"spdxId": "Apache-2.0",
"url": "https://spdx.org/licenses/Apache-2.0.html"
},
"mainProgram": "podman-desktop",
"maintainers": [
{
"email": "[email protected]",
"github": "booxter",
"githubId": 90200,
"name": "Ihar Hrachyshka"
},
{
"email": "[email protected]",
"github": "panda2134",
"githubId": 7239200,
"name": "panda2134"
}
],
"maintainersPosition": {
"column": 5,
"file": "/nix/store/imwsb25d173724pw8rwhymmk8vci0r78-source/pkgs/by-name/po/podman-desktop/package.nix",
"line": 155
},
"name": "podman-desktop-1.19.1",
"outputsToInstall": [
"out"
],
"platforms": [
"x86_64-darwin",
"x86_64-linux",
"armv7l-linux",
"aarch64-linux",
"aarch64-darwin"
],
"position": "/nix/store/imwsb25d173724pw8rwhymmk8vci0r78-source/pkgs/by-name/po/podman-desktop/package.nix:151",
"unfree": false,
"unsupported": false
} |
|
With this PR, I see: which doesn't seem right? |
The results of the command |
|
I see. Wouldn't it make sense to meld the two lists for |
It is a more correct way to do it. Do you know how to do it in nix code? |
|
@mio-19 it doesn't make the lists of platforms identical but it should make it so that evals on both platforms list darwin targets: booxter@cd1f47f A more proper fix would have to go deeper, into electron package. on darwin: on linux: |
|
@NixOS/darwin-core perhaps our core team would have a better idea on how to make |
|
This is another symptom of the thing where Hydra and other infra only evaluates in I think in this case the most general hack would be to add Darwin to the Electron source package platform list, with the understanding that it won't actually build but will tell Hydra the right thing. That means that explicit builds of the source package wouldn't give a good error though, unfortunately. |
|
Maybe something like this would be good? This is imo the logical place to do it. No impacted packages according to nixpkgs-review (applied to the other electron versions too). diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index d5a5df1edd29..a0f82862cae6 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -6835,10 +6835,15 @@ with pkgs;
electron_33 = electron_33-bin;
electron_34 = electron_34-bin;
electron_35 =
- if lib.meta.availableOn stdenv.hostPlatform electron-source.electron_35 then
- electron-source.electron_35
- else
- electron_35-bin;
+ (if lib.meta.availableOn stdenv.hostPlatform electron-source.electron_35 then
+ electron-source.electron_35
+ else
+ electron_35-bin
+ ).overrideAttrs (old: {
+ meta = old.meta // {
+ platforms =
+ electron-source.electron_35.meta.platforms
+ ++ electron_35-bin.meta.platforms;
+ };
+ });
electron_36 =
if lib.meta.availableOn stdenv.hostPlatform electron-source.electron_36 then
electron-source.electron_36Or maybe make it some sort of meta package |
|
@mio-19 do you plan to refresh this based on the latest comments maybe? Please let us know if you are still interested in pursuing it. |
Things done
nix.conf? (See Nix manual)sandbox = relaxedsandbox = truenix-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.