Closed KiaraGrouwstra closed 4 years ago
It's probably not what you want to hear, but if I were you I would write a proper derivation for this package and then use dpkg -x
to unpack it and shift the various parts into place.
It does look like dpkg
in nix is broken - you do have a valid point, but I doubt this particular use case sees a lot of real life action so it is unlikely to be well maintained.
Thanks for the suggestion -- that does actually seem helpful. As this particular package is proprietary, I feared making a native package would be a problem. Now that you mention it though, it does seem like other packages pulled this off as well. I'll look into this route. Thank you!
(If any Chinese NixOS users are reading this and have suggestions on how to deal with Chinese IMEs in NixOS, I'd love to hear them!)
Even if the dpkg -i ./some_file.deb
part worked as planned, the binary would be unlikely to work unless you use patchelf
on it, so then we're back to "might as well do a proper derivation" territory...
As this particular package is proprietary, I feared making a native package would be a problem.
We have lots of proprietary stuff in nixpkgs - that shouldn't be an issue. If the source .deb isn't publicly available on the internet for downloading, you can take a look at how making the source package available for the citrix receiver is handled in nixpkgs .
Thank you for your contributions.
This has been automatically marked as stale because it has had no activity for 180 days.
If this is still important to you, we ask that you leave a comment below. Your comment can be as simple as "still important to me". This lets people see that at least one person still cares about this. Someone will have to do this at most twice a year if there is no other activity.
Here are suggestions that might help resolve this more quickly:
I have updated the wiki.
Issue description
The NixOS cheatsheet claims I can install
.deb
files through a Nix-installeddpkg
, but when trying this I encounter some errors.Steps to reproduce
Example using the
.deb
for Sogou Pinyin, a popular proprietary Chinese IME:At this point I'm feeling confused what's going on here and what the errors might be going on about, as well as why I haven't seen similar reports here despite
dpkg
used apparently having been tried.Technical details
"x86_64-linux"
Linux 4.18.0, NixOS, 18.09.1799.b9fa31cea0e (Jellyfish)
yes
yes
nix-env (Nix) 2.1.3
"nixos-18.09.1799.b9fa31cea0e, nixos-unstable-small-19.03pre164396.24cdaa7b488"
"nixos-unstable-small-19.03pre164396.24cdaa7b488"
/nix/var/nix/profiles/per-user/root/channels/nixos