Skip to content

NixOS support #1

@pdg137

Description

@pdg137

Is anyone interested in helping add this package to NixOS? I don't know much about the software or antenna design in general but I'd like to learn, so I started a branch here to add OpenNEC:

https://github.com/pdg137/nixpkgs/tree/opennec

If you want to try it, here's one way: install nix on any Linux distribution, save the following as shell.nix, and run nix-shell:

let
  # https://github.com/pdg137/nixpkgs/tree/opennec from 2026-03-21
  version = "c686d74cb8b7fff678c2ea4ad1805794b9811f5f";
  nixpkgs = fetchTarball {
    name = "nixpkgs-${version}";
    url = "https://github.com/pdg137/nixpkgs/archive/${version}.tar.gz";
    sha256 = "1ncp8i0aqfmf25qbmim0zw316x4mhkydfgx3g2pixkniymvsarr3";
  };
  pkgs = import nixpkgs {};
in
pkgs.stdenv.mkDerivation {
  name = "shell";
  buildInputs = [
    pkgs.opennec
  ];
}

This will download and build OpenNEC (with OpenBLAS) and drop you into a shell with the onec executable on your path. I installed the tests in the installation directory along with the executable so it's easy to try them out; onec seems to at least run example5.out, generating some kind of output.

What else can I try to test it out? Is there a way to run all the files from the test suite and know that everything worked? Is there an example program that I can try linking to the shared library?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions