diff --git a/pkgs/os-specific/darwin/noah/default.nix b/pkgs/os-specific/darwin/noah/default.nix new file mode 100644 index 000000000000..81f4ab2bd9e9 --- /dev/null +++ b/pkgs/os-specific/darwin/noah/default.nix @@ -0,0 +1,24 @@ +{ stdenv, fetchFromGitHub, cmake, Hypervisor }: + +stdenv.mkDerivation rec { + pname = "noah"; + version = "0.5.1"; + + src = fetchFromGitHub { + owner = "linux-noah"; + repo = pname; + rev = version; + sha256 = "0bivfsgb56kndz61lzjgdcnqlhjikqw89ma0h6f6radyvfzy0vis"; + }; + + nativeBuildInputs = [ cmake ]; + buildInputs = [ Hypervisor ]; + + meta = with stdenv.lib; { + description = "Bash on Ubuntu on macOS"; + homepage = "https://github.com/linux-noah/noah"; + license = [ licenses.mit licenses.gpl2 ]; + maintainers = [ maintainers.marsam ]; + platforms = platforms.darwin; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 93b4a3fca9d6..c8ef10948252 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -15690,6 +15690,10 @@ in nftables = callPackage ../os-specific/linux/nftables { }; + noah = callPackage ../os-specific/darwin/noah { + inherit (darwin.apple_sdk.frameworks) Hypervisor; + }; + numactl = callPackage ../os-specific/linux/numactl { }; numad = callPackage ../os-specific/linux/numad { };