I’m trying to provision binary file into NixOS and make it as a usable package inside a system. For this purposes, I created config file with usage of pkgs.overlays
:
{ pkgs, ... }:
{
nixpkgs.overlays = [(self: super: {
nginxAuth = pkgs.fetchurl = {
url = "https://github.com/dcmediahosting/nginx-mail-auth-http/releases/download/1.0.1/nginx-mail-auth-http-linux-amd64";
sha256 = "1687ee47e687b181e761840226dce6f1d03f5442dee105a1a1958fd2bb82bc79";
};
})];
environment.systemPackages = [ pkgs.nginxAuth ];
}
But, while trying to perform nixos-rebuild switch
, I obtain:
error: syntax error, unexpected '=', expecting ';', at /etc/nixos/nginx-auth.nix:4:31
(use '--show-trace' to show detailed location information)
building Nix...
What can be a problem in my file, that prevents from it being built and orchestrated into NixOS?