From 7b2325622a94824b8c64d40f8bbe169786566400 Mon Sep 17 00:00:00 2001 From: Mario Rodas Date: Wed, 12 Jun 2019 21:30:00 -0500 Subject: [PATCH] noah: init at 0.5.1 --- pkgs/os-specific/darwin/noah/default.nix | 24 ++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 4 ++++ 2 files changed, 28 insertions(+) create mode 100644 pkgs/os-specific/darwin/noah/default.nix 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 { };