diff --git a/.nix/derivation.nix b/.nix/derivation.nix new file mode 100644 index 0000000..e82f730 --- /dev/null +++ b/.nix/derivation.nix @@ -0,0 +1,32 @@ +{ lib +, stdenv +, zlib +, fetchFromGitHub +, scons +, pkg-config +, clang_12 +, clang-tools +, gnutls +}: + +stdenv.mkDerivation { + pname = "forstio"; + version = "0.0.0"; + + buildInputs = [scons clang_12 clang-tools gnutls]; + + src = ./..; + + doCheck = true; + enableParallelBuilding = true; + + outputs = ["out" "dev"]; + + meta = with lib; { + homepage = "https://github.com/keldu/forstio"; + description = "An asynchronous framework with some additional network features"; + platforms = platforms.unix; + maintainers = with maintainers; [keldu]; + }; +} + diff --git a/.nix/shell.nix b/.nix/shell.nix deleted file mode 100644 index a2f5ee2..0000000 --- a/.nix/shell.nix +++ /dev/null @@ -1,10 +0,0 @@ - with import {}; - -{ pkgs ? import {} }: - pkgs.mkShell { - name = "forstio"; - nativeBuildInputs = [ scons gnutls clang_12 clang-tools]; - - buildPhase = '' - ''; -} diff --git a/default.nix b/default.nix new file mode 100644 index 0000000..b369f19 --- /dev/null +++ b/default.nix @@ -0,0 +1,3 @@ +{ pkgs ? import {} }: + +pkgs.callPackage ./.nix/derivation.nix {}