From 0bdb22eeb3262565e935383953d4f8b8d32a7c79 Mon Sep 17 00:00:00 2001 From: materus Date: Tue, 23 May 2023 20:01:38 +0200 Subject: [PATCH] xmake: init package --- pkgs/default.nix | 2 ++ pkgs/dev/xmake/default.nix | 21 +++++++++++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 pkgs/dev/xmake/default.nix diff --git a/pkgs/default.nix b/pkgs/default.nix index 59674e1..95b48c3 100644 --- a/pkgs/default.nix +++ b/pkgs/default.nix @@ -19,4 +19,6 @@ rec { polymc = pkgs.qt6Packages.callPackage ./apps/games/polymc {}; + xmake = callPackage ./dev/xmake {}; + } diff --git a/pkgs/dev/xmake/default.nix b/pkgs/dev/xmake/default.nix new file mode 100644 index 0000000..a103950 --- /dev/null +++ b/pkgs/dev/xmake/default.nix @@ -0,0 +1,21 @@ +{ pkgs, lib, stdenv, fetchFromGitHub }: + + +stdenv.mkDerivation rec { + pname = "xmake"; + version = "v2.7.9"; + src = fetchFromGitHub { + owner = "xmake-io"; + repo = "xmake"; + rev = version; + sha256 = "sha256-Op13Rx+meY6ZN2xvyj/9rNUPmXsHMQoVJSpxZCiRc6A="; + fetchSubmodules = true; + }; + + meta = with lib; { + description = "A cross-platform build utility based on Lua"; + homepage = "https://xmake.io"; + license = licenses.asl20; + platforms = platforms.linux; + }; +}