I’m trying to install Nord VPN on NixOS from their provided .deb
release. It isn’t on Nixpkgs (although I could add it once I get this working), so for now I’m using a local package definition. I’m starting out with a super simple package definition:
{ stdenv
, lib
, fetchurl
}:
stdenv.mkDerivation rec {
pname = "nord-vpn";
version = "1.0.0";
src = fetchurl {
url = "https://repo.nordvpn.com/deb/nordvpn/debian/pool/main/nordvpn_3.10.0-1_amd64.deb";
sha256 = "0qqbfzk0428a97h5n1i9m2gzmwrbx1fj62pmqllwchk56ag0il04";
};
meta = with lib; {
homepage = "https://nordvpn.com/";
description = "Client for Nord VPN";
platforms = [ "x86_64-linux" ];
};
}
I include this in my configuration.nix
by doing:
nixpkgs.config.packageOverrides = pkgs: import ./packages pkgs;
...
environments.systemPackages = [ pkgs.nord-vpn ];
Where ./packages/default.nix
is:
pkgs:
{
nord-vpn = pkgs.callPackage ./nord-vpn { };
}
I think I understand everything in here so far, but when I try to build this I just get an error:
error: getting status of '/etc/nixos/packages/nord-vpn': No such file or directory
There must be something fundamental I’m missing here. Why is it looking for an existing file for a totally new package I’ve defined? Is this the right way to create a totally new package locally?