-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
78 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,9 @@ | ||
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ | ||
|
||
Files: flake.lock | ||
pkgs/python_ot/poetry.lock | ||
Files: *.lock | ||
*.patch | ||
pkgs/python_ot/poetry-git-overlay.nix | ||
pkgs/verilator/fix.patch | ||
README.md | ||
**/README.md | ||
pkgs/surfer/Cargo.lock | ||
Copyright: lowRISC contributors | ||
License: MIT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
# Copyright lowRISC Contributors. | ||
# SPDX-License-Identifier: MIT | ||
{ | ||
lib, | ||
stdenv, | ||
fetchurl, | ||
pkg-config, | ||
lua, | ||
readline, | ||
ncurses, | ||
lz4, | ||
darwin, | ||
}: | ||
stdenv.mkDerivation rec { | ||
pname = "xmake"; | ||
version = "2.9.1"; | ||
|
||
src = fetchurl { | ||
url = "https://github.com/xmake-io/xmake/releases/download/v${version}/xmake-v${version}.tar.gz"; | ||
hash = "sha256-ox2++MMDrqEmgGi0sawa7BQqxBJMfLfZx+61fEFPjRU="; | ||
}; | ||
|
||
# This patch is needed because, when building with Nix, | ||
# coreutils' and findutils' versions of date and find are provided, | ||
# which have slightly different behaviour to the macOS versions. | ||
patches = [./macosx.patch]; | ||
|
||
nativeBuildInputs = [ | ||
pkg-config | ||
]; | ||
|
||
buildInputs = | ||
[ | ||
lua | ||
readline | ||
ncurses | ||
lz4 | ||
] | ||
++ lib.optional stdenv.isDarwin darwin.apple_sdk.frameworks.CoreServices; | ||
|
||
strictDeps = true; | ||
|
||
meta = with lib; { | ||
description = "A cross-platform build utility based on Lua"; | ||
homepage = "https://xmake.io"; | ||
license = licenses.asl20; | ||
platforms = lua.meta.platforms; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
diff --git a/configure b/configure | ||
index 9f4232d50..96cee6ae7 100755 | ||
--- a/configure | ||
+++ b/configure | ||
@@ -242,11 +242,7 @@ _os_find() { | ||
local name="${2}" | ||
local depth="${3}" | ||
if test_nz "${depth}"; then | ||
- if is_host "macosx"; then | ||
- _ret=$(find "${dir}" -depth "${depth}" -type f -name "${name}") | ||
- else | ||
- _ret=$(find "${dir}" -maxdepth "${depth}" -mindepth "${depth}" -type f -name "${name}") | ||
- fi | ||
+ _ret=$(find "${dir}" -maxdepth "${depth}" -mindepth "${depth}" -type f -name "${name}") | ||
else | ||
_ret=$(find "${dir}" -type f -name "${name}") | ||
fi | ||
@@ -258,8 +254,6 @@ _os_find() { | ||
_os_date() { | ||
if test_z "${SOURCE_DATE_EPOCH}"; then | ||
_ret=$(date +"${1}") | ||
- elif is_host "macosx" "freebsd" "bsd"; then | ||
- _ret=$(date -u -r "$SOURCE_DATE_EPOCH" +"${1}") | ||
else | ||
_ret=$(date -u -d "@$SOURCE_DATE_EPOCH" +"${1}") | ||
fi |