Context: I’m using Nix with a non-NixOS distro.
I want to use an updated version of a software I use for work (The current version at Nixpkgs 20.09 and unstable is outdated).
I created the following at .config/nixpkgs/overlays/upwork.nix
:
{
upwork = super.upwork.overrideAttrs (old: {
src = super.fetchurl {
url = "https://upwork-usw2-desktopapp.upwork.com/binaries/v5_4_9_6_2565cdd0547940a2/upwork_5.4.9.6_amd64.deb";
sha256 = "ff6246b3b4a1ed79cc9bca2934652fefb40bdac4b7e95997f3a46e354ce52456";
};
});
}
I have added the following to my home.nix
file:
{ config, pkgs, ... }:
{
...
packages = with pkgs; [ upwork ];
...
nixpkgs.overlays = [
(import ../overlays/upwork.nix)
];
...
After building and switching, I’m still getting the old version (5.3.3), as shown here:
ls -la /nix/store/30jf6l2phdsljvm75b1pnb28r15mbayj-home-manager-path/bin | grep upwork
lrwxrwxrwx 1 pyak pyak 71 Dec 31 1969 upwork -> /nix/store/wx6h3fv12lcsq19mzsdh8s53x1ls60zc-upwork-5.3.3-883/bin/upwork
What I’m doing wrong here? I tried to be as similar as in here.