-
-
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
WIP: Add plasma-phone package #58370
Conversation
src = fetchurl { | ||
url = "https://invent.kde.org/kde/plasma-phone-components/-/archive/master/plasma-phone-components-master.tar.gz"; | ||
sha256 = "0jmw0c2pj4dmak1w49r4lwwg3c4zvgn5d3h3ihrzksh23ni7kb3b"; | ||
}; |
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.
(Nothing to do right now, but to be done eventually before merging.)
Their invent
platform is a GitLab server, fetchFromGitLab
should be used to fetch their tarballs since revision tarballs, from most repo hosting systems, might eventually change as they are generated, making the sha256 unstable.
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.
What would be the process of getting this on a mirror to match all the other packages in srcs.nix
?
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.
This bit
nixpkgs/maintainers/scripts/fetch-kde-qt.sh
Lines 6 to 13 in 803e956
SRCS= if [ -d "$1" ]; then SRCS="$(pwd)/$1/srcs.nix" . "$1/fetch.sh" else SRCS="$(pwd)/$(dirname $1)/srcs.nix" . "$1" fi
Ends up using either of:
- https://github.com/NixOS/nixpkgs/blob/master/pkgs/applications/kde/fetch.sh
- https://github.com/NixOS/nixpkgs/blob/master/pkgs/desktops/plasma-5/fetch.sh
Depending of where exactly it would go (among other srcs.nix
handled by that script). So basically whenever kde/plasma publishes a released source for that.
I'm currently trying to get a configuration option to enable the mobile shell. I can get it working manually by running If anyone has a better idea on how to do this it would be greatly appreciated. |
ping (triage) |
Thank you for your contributions.
|
@@ -234,6 +234,14 @@ | |||
name = "plasma-browser-integration-5.14.5.tar.xz"; | |||
}; | |||
}; | |||
# TODO: Change to use "${mirror}" once available |
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.
plasma-phone-components has releases in stable since 5.18, so now that #84542 is merged, you don't need to add anything to srcs.nix
.
let inherit (lib) getBin getLib; in | ||
|
||
mkDerivation { | ||
name = "plasma-phone"; |
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.
The upstream project is named plasma-phone-components
, not plasma-phone
. We should give our package the same name unless we have a good reason not to.
There a few other plasma-mobile packages in stable srcs.nix now too. |
Sorry to disappoint, but I'm not really able to work on this further. I will be closing this as I believe there is a much more organized 'Mobile NixOS' initiative going on: |
Anyone following this PR, or finding this PR, and is concerned about this being dropped. I'm packaging it up. I'm also packaging up plasma mobile apps that don't already have a PR here. I have a WIP dirty branch here: Already in it is a couple PRs, and the changes required for Plasma Mobile to work. Though things don't exactly work out of the box. At least for the DM session. So stay tuned for a follow-up PR! |
So for anyone still following this PR, to help push myself into finishing this, #121345 was opened. Not really ready for reviews, but something to look at. |
Motivation for this change
This is a work in progress for getting plasma-mobile software working in NixOS.
Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nix-review --run "nix-review wip"
./result/bin/
)nix path-info -S
before and after)