How to install unison-gtk in NixOS? - nixos

The title pretty much says it.
I installed NixOS 20.03 in a virtual machine to play a little with it and, if all goes well, install it on my work laptop.
I use Unison's gui, unison-gtk, to keep the laptop and my main production machine in sync. I found the unison package on the search page, but this package does not install unison-gtk, and there seems to be no package for it either. How can I install it?
Thanks in advance.

In NixOS, the unison package includes a GUI, no need for a separate package.

Related

all-the-icons not working correctly (already ran all-the-icons-install-fonts)

I am currently running emacs on Gentoo linux. My intention was to use all-the-icons ivy (I also downloaded all-the-icons-ivy). Unfortunately, all the icons come out confusing.
I have already run all-the-icons-install-fonts, per the wiki instructions. Does anyone know what is happening?
You may lack the fonts for all-the-icons.
The all-the-icons documentation recommends installing the fonts by running this command in Emacs:
M-x all-the-icons-install-fonts.
Alternatively, you can try installing the fonts using the package manager for your OS. For Gentoo, there's a package for all-the-icons here.
I ran into a similar issue on an Arch based distro, and was able to resolve it by installing all-the-iconts. For those using Arch based distros, the package can be found here.

Using KDE frameworks and Qt Creator installed without apt

A similar question has already been asked here Starting with KDE Frameworks 5 and Qt Creator. However, the answer still hasn't clarified my doubts. So here is the problem: on Linux (Ubuntu) there are two ways to install Qt, first is to use apt (sudo apt install qt5-default) and the other one is to download Qt from the official website. Now when you install using the first way Qt is installed by defualt /usr/lib and the second way in the home folder (or in /opt if you ran the installed with administrator privileges).
Now I would like to integrate KDE Frameworks 5 in my project so on the official website it is suggested to use:
sudo apt install framework
And then you can just include that in your project by QT += framework. The problem is I installed Qt using the second way (downloading from the website) and as a result Qt Creator always return Project ERROR: Unknown module(s) in QT: framework. This I believe is because Qt doesn't seem to be aware of the fact that the modules are in /usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/ instead it probably looks for them somewhere else.
How do I solve this problem with a permanent solution? I cannot install Qt using apt because I would like to use the latest version which usually in not immediately available in the default repositories.
Ok so after a looking a lot, a solution has been suggested here https://forum.qt.io/topic/104861/how-to-use-kde-frameworks-with-qt-creator/8
Essentially Qt, if not installed through the system's repositories, is unable to find the KF5 modules. In order to fix this you can add a QMAKEPATH environment build variable to your project that tells Qt where it should look for the module, in my case this was in
/usr/lib/x86_64-linux-gnu/qt5

How should I install packages that generally are available in Ubuntu repos on Debian

I have Linux Mint in my home computer and I'm about to install Debian Jessie in my work computer. I have dealt with Debian before and many packages that are available in Ubuntu repositories by default aren't available for Debian. As someone who needs all those packages I was wondering what would be the correct way of installing them on Debian.
The first thought that came to me was adding Ubuntu sources to sources.list, but I read some things and apparently people do not recommend this.
Since I have to install many of these packages, I also would like to avoid having to install them from source one-by-one.
What would be the preferred way to do this task?
Thank you.
I'm don't think you can install them from the repos if you don't want to add sources in sources.list.
If we are talking about reasonably small number of packages (say 10) I would recommend checking if .deb packages exist on the home pages.
For example:
http://pkgs.org/download/ipython
This is much easier than installing from source. It's not fully automated solution, but for smaller number of packages you can do it.
I hope it helps.

Install Haskell packages using cabal without internet connection

I have a machine that doesn't have internet access at all.
I installed the Haskell Platform on it using the installer which I got from another machine through a pendrive.
Now I want to install the package repa on my home machine which has no internet access. How should I do that?
My home machine is running Linux (Debian) and my office machine is Windows 7.
From a machine you can access the internet you can either:
Run cabal get pkg-name where pkg-name is the package you want.
Go to the package's page on Hackage and on the Downloads section there's a .tar.gz file you can download.
After you get it, transfer it to your other machine, extract it anywhere you'd like (a sandbox if you want it just in a sandbox). Then from that directory (where there's a .cabal file) run cabal install.
Package managers, such as cabal, work internally to get a package from a remote repository. I doubt there exist an easy workaround to make cabal install a package in offline mode.
Probably the easiest way is to find a compressed version of package, find a way to get them on the offline computer (local sharing, thumb drive, etc.) and install a package manually.

How to upgrade mono on openSuse

I have a virtual machine running of openSuse 11.2 that has mono 2.6.4, I use this VM as a test server to test asp.net applications under Apache mod_mono.
I wanted to upgrade (in the same virtual machine) to mono 2.8.2. I downloaded several rpm files from http://ftp.novell.com/pub/mono/download-stable/openSUSE_11.2/i586/ but I'm in a dependency "loop", don't know which package to install in the correct order...
(Did I mention that I know very little of suse?)
Edit: Is it possible to find a way to upgrade it without network connectivity?
Thanks!
Go to this page at opensuse.org and click "1-Click Install" button on mono-complete-2.8.2 meta package. Then all your loop dependencies will be solved automatically by YaST manager.
It is a usual user-friendly way to install packages on openSuSE.

Resources