forked from nikkuss/pkgs
Compare commits
7 Commits
main
...
hexagon-sdk
| Author | SHA1 | Date | |
|---|---|---|---|
|
cf667edfac
|
|||
|
62e38d5b74
|
|||
|
5594228115
|
|||
|
4836330a2c
|
|||
|
0fe89abb1f
|
|||
| a93e936203 | |||
|
80330456f3
|
+11
-11
@@ -21,7 +21,7 @@
|
|||||||
},
|
},
|
||||||
"base24-schemes": {
|
"base24-schemes": {
|
||||||
"cargoLock": null,
|
"cargoLock": null,
|
||||||
"date": "2026-03-04",
|
"date": "2026-04-12",
|
||||||
"extract": null,
|
"extract": null,
|
||||||
"name": "base24-schemes",
|
"name": "base24-schemes",
|
||||||
"passthru": null,
|
"passthru": null,
|
||||||
@@ -31,13 +31,13 @@
|
|||||||
"fetchSubmodules": false,
|
"fetchSubmodules": false,
|
||||||
"leaveDotGit": false,
|
"leaveDotGit": false,
|
||||||
"name": null,
|
"name": null,
|
||||||
"rev": "13b5b0c299982bb361039601e2d72587d6846294",
|
"rev": "3e228732e93c107e8b65b8be30c36e5b3c507d95",
|
||||||
"sha256": "sha256-4eu3LqB9tPqe0Vaqxd4wkZiBbthLbpb7llcoE/p5HT0=",
|
"sha256": "sha256-G34G4hri8H2XNwF0e15MFj3sjO8fTOphNk0WjBwnVew=",
|
||||||
"sparseCheckout": [],
|
"sparseCheckout": [],
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/tinted-theming/schemes.git"
|
"url": "https://github.com/tinted-theming/schemes.git"
|
||||||
},
|
},
|
||||||
"version": "13b5b0c299982bb361039601e2d72587d6846294"
|
"version": "3e228732e93c107e8b65b8be30c36e5b3c507d95"
|
||||||
},
|
},
|
||||||
"claude-code-acp": {
|
"claude-code-acp": {
|
||||||
"cargoLock": null,
|
"cargoLock": null,
|
||||||
@@ -53,12 +53,12 @@
|
|||||||
"name": null,
|
"name": null,
|
||||||
"owner": "zed-industries",
|
"owner": "zed-industries",
|
||||||
"repo": "claude-code-acp",
|
"repo": "claude-code-acp",
|
||||||
"rev": "v0.24.2",
|
"rev": "v0.26.0",
|
||||||
"sha256": "sha256-SRVbLcGrH5pJt6yfM0ObSso68M+yGateIVYf/kFVDhE=",
|
"sha256": "sha256-2G8gjMCnk3W1I2+4sNsumL15ts9bLXAOMguCmwnzWSA=",
|
||||||
"sparseCheckout": [],
|
"sparseCheckout": [],
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"version": "v0.24.2"
|
"version": "v0.26.0"
|
||||||
},
|
},
|
||||||
"flightcore": {
|
"flightcore": {
|
||||||
"cargoLock": null,
|
"cargoLock": null,
|
||||||
@@ -84,7 +84,7 @@
|
|||||||
"neovide": {
|
"neovide": {
|
||||||
"cargoLock": {
|
"cargoLock": {
|
||||||
"Cargo.lock": [
|
"Cargo.lock": [
|
||||||
"sha256-Qd3Ld0az0b7ixz2ObUucdJO2uWSQs7XiTVdmXJxilhk=/Cargo.lock",
|
"sha256-JBV939TEfG44w59iUJ3KgiCrQ9aCcjmPxu2uoBD_Ank=/Cargo.lock",
|
||||||
{}
|
{}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
@@ -94,12 +94,12 @@
|
|||||||
"passthru": null,
|
"passthru": null,
|
||||||
"pinned": false,
|
"pinned": false,
|
||||||
"src": {
|
"src": {
|
||||||
"deepClone": false,
|
"deepClone": true,
|
||||||
"fetchSubmodules": false,
|
"fetchSubmodules": true,
|
||||||
"leaveDotGit": false,
|
"leaveDotGit": false,
|
||||||
"name": null,
|
"name": null,
|
||||||
"rev": "nightly",
|
"rev": "nightly",
|
||||||
"sha256": "sha256-Qd3Ld0az0b7ixz2ObUucdJO2uWSQs7XiTVdmXJxilhk=",
|
"sha256": "sha256-JBV939TEfG44w59iUJ3KgiCrQ9aCcjmPxu2uoBD/Ank=",
|
||||||
"sparseCheckout": [],
|
"sparseCheckout": [],
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/neovide/neovide.git"
|
"url": "https://github.com/neovide/neovide.git"
|
||||||
|
|||||||
+11
-11
@@ -21,27 +21,27 @@
|
|||||||
};
|
};
|
||||||
base24-schemes = {
|
base24-schemes = {
|
||||||
pname = "base24-schemes";
|
pname = "base24-schemes";
|
||||||
version = "13b5b0c299982bb361039601e2d72587d6846294";
|
version = "3e228732e93c107e8b65b8be30c36e5b3c507d95";
|
||||||
src = fetchgit {
|
src = fetchgit {
|
||||||
url = "https://github.com/tinted-theming/schemes.git";
|
url = "https://github.com/tinted-theming/schemes.git";
|
||||||
rev = "13b5b0c299982bb361039601e2d72587d6846294";
|
rev = "3e228732e93c107e8b65b8be30c36e5b3c507d95";
|
||||||
fetchSubmodules = false;
|
fetchSubmodules = false;
|
||||||
deepClone = false;
|
deepClone = false;
|
||||||
leaveDotGit = false;
|
leaveDotGit = false;
|
||||||
sparseCheckout = [];
|
sparseCheckout = [];
|
||||||
sha256 = "sha256-4eu3LqB9tPqe0Vaqxd4wkZiBbthLbpb7llcoE/p5HT0=";
|
sha256 = "sha256-G34G4hri8H2XNwF0e15MFj3sjO8fTOphNk0WjBwnVew=";
|
||||||
};
|
};
|
||||||
date = "2026-03-04";
|
date = "2026-04-12";
|
||||||
};
|
};
|
||||||
claude-code-acp = {
|
claude-code-acp = {
|
||||||
pname = "claude-code-acp";
|
pname = "claude-code-acp";
|
||||||
version = "v0.24.2";
|
version = "v0.26.0";
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "zed-industries";
|
owner = "zed-industries";
|
||||||
repo = "claude-code-acp";
|
repo = "claude-code-acp";
|
||||||
rev = "v0.24.2";
|
rev = "v0.26.0";
|
||||||
fetchSubmodules = false;
|
fetchSubmodules = false;
|
||||||
sha256 = "sha256-SRVbLcGrH5pJt6yfM0ObSso68M+yGateIVYf/kFVDhE=";
|
sha256 = "sha256-2G8gjMCnk3W1I2+4sNsumL15ts9bLXAOMguCmwnzWSA=";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
flightcore = {
|
flightcore = {
|
||||||
@@ -61,14 +61,14 @@
|
|||||||
src = fetchgit {
|
src = fetchgit {
|
||||||
url = "https://github.com/neovide/neovide.git";
|
url = "https://github.com/neovide/neovide.git";
|
||||||
rev = "nightly";
|
rev = "nightly";
|
||||||
fetchSubmodules = false;
|
fetchSubmodules = true;
|
||||||
deepClone = false;
|
deepClone = true;
|
||||||
leaveDotGit = false;
|
leaveDotGit = false;
|
||||||
sparseCheckout = [];
|
sparseCheckout = [];
|
||||||
sha256 = "sha256-Qd3Ld0az0b7ixz2ObUucdJO2uWSQs7XiTVdmXJxilhk=";
|
sha256 = "sha256-JBV939TEfG44w59iUJ3KgiCrQ9aCcjmPxu2uoBD/Ank=";
|
||||||
};
|
};
|
||||||
cargoLock."Cargo.lock" = {
|
cargoLock."Cargo.lock" = {
|
||||||
lockFile = ./. + "/sha256-Qd3Ld0az0b7ixz2ObUucdJO2uWSQs7XiTVdmXJxilhk=/Cargo.lock";
|
lockFile = ./. + "/sha256-JBV939TEfG44w59iUJ3KgiCrQ9aCcjmPxu2uoBD_Ank=/Cargo.lock";
|
||||||
outputHashes = {
|
outputHashes = {
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
+1
-1
@@ -1593,7 +1593,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "neovide"
|
name = "neovide"
|
||||||
version = "0.16.0"
|
version = "0.16.1"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"anyhow",
|
"anyhow",
|
||||||
"approx",
|
"approx",
|
||||||
@@ -34,4 +34,6 @@ fetch.git = "https://github.com/qca/qca-swiss-army-knife.git"
|
|||||||
[neovide]
|
[neovide]
|
||||||
src.manual = "nightly"
|
src.manual = "nightly"
|
||||||
fetch.git = "https://github.com/neovide/neovide.git"
|
fetch.git = "https://github.com/neovide/neovide.git"
|
||||||
|
git.fetchSubmodules = true
|
||||||
|
git.deepClone = true
|
||||||
cargo_lock = ["Cargo.lock"]
|
cargo_lock = ["Cargo.lock"]
|
||||||
|
|||||||
@@ -0,0 +1,90 @@
|
|||||||
|
{
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
stdenvNoCC,
|
||||||
|
stdenv,
|
||||||
|
p7zip,
|
||||||
|
curl,
|
||||||
|
jq,
|
||||||
|
cacert,
|
||||||
|
}:
|
||||||
|
|
||||||
|
let
|
||||||
|
version = "v6.4.0.2";
|
||||||
|
src = fetchTarball {
|
||||||
|
url = "https://github.com/snapdragon-toolchain/hexagon-sdk/releases/download/v6.4.0.2/hexagon-sdk-v6.4.0.2-amd64-lnx.tar.xz";
|
||||||
|
sha256 = "0qadmn84sdqbqh3s837s0amdmln3akb1b01k8x5nha0lkw6a3jwc";
|
||||||
|
};
|
||||||
|
gmp_override = pkgs.gmp.overrideAttrs (
|
||||||
|
final: prev: {
|
||||||
|
postInstall =
|
||||||
|
(prev.postInstall or "")
|
||||||
|
+ "
|
||||||
|
ls
|
||||||
|
cd $out
|
||||||
|
cd lib
|
||||||
|
ls
|
||||||
|
rm libgmp.so.10
|
||||||
|
cp libgmp.so.10.5.0 libgmp.so.10
|
||||||
|
cp libgmp.so.10.5.0 $out/libgmp.so.10
|
||||||
|
";
|
||||||
|
}
|
||||||
|
);
|
||||||
|
libs = [
|
||||||
|
pkgs.stdenv.cc.cc.lib
|
||||||
|
pkgs.libc
|
||||||
|
pkgs.libcxx
|
||||||
|
pkgs.gmp
|
||||||
|
pkgs.libz
|
||||||
|
pkgs.libgccjit
|
||||||
|
# pkgs.zlib
|
||||||
|
# pkgs.ncurses
|
||||||
|
];
|
||||||
|
|
||||||
|
# we get Nixpkgs to create the library paths for us, so we don't have to wrangle them by hand
|
||||||
|
libPath = pkgs.lib.makeLibraryPath libs;
|
||||||
|
in
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
pname = "hexagon-sdk";
|
||||||
|
inherit version src;
|
||||||
|
|
||||||
|
# dontUnpack = true;
|
||||||
|
# dontBuild = true;
|
||||||
|
|
||||||
|
nativeBuildInputs = [
|
||||||
|
];
|
||||||
|
buildInputs = [ pkgs.patchelf ];
|
||||||
|
runtimeDependencies = with pkgs; [ gmpxx ];
|
||||||
|
|
||||||
|
buildPhase = ''
|
||||||
|
runHook preBuild
|
||||||
|
# cp $out/opt/tools/HEXAGON_Tools/19.0.04/Tools/lib/libLW.so.3 $out/opt/tools/HEXAGON_Tools/19.0.04/Tools/bin/
|
||||||
|
runHook postBuild
|
||||||
|
'';
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
runHook preInstall
|
||||||
|
mkdir $out
|
||||||
|
cp -r ${src} $out/opt
|
||||||
|
runHook postInstall
|
||||||
|
|
||||||
|
chmod +w $out/opt/ipc/fastrpc/qaic/bin/qaic
|
||||||
|
chmod +w $out/opt/tools/HEXAGON_Tools/19.0.04/Tools/bin/hexagon-clang
|
||||||
|
chmod +w $out/opt/tools/HEXAGON_Tools/19.0.04/Tools/bin/hexagon-link
|
||||||
|
patchelf $out/opt/ipc/fastrpc/qaic/bin/qaic --set-interpreter ${pkgs.stdenv.cc.bintools.dynamicLinker} --set-rpath ${libPath}
|
||||||
|
patchelf $out/opt/tools/HEXAGON_Tools/19.0.04/Tools/bin/hexagon-clang --set-interpreter ${pkgs.stdenv.cc.bintools.dynamicLinker} --set-rpath ${libPath}
|
||||||
|
lib=${libPath}
|
||||||
|
lib=$lib:$out/opt/tools/HEXAGON_Tools/19.0.04/Tools/lib
|
||||||
|
echo $lib
|
||||||
|
patchelf $out/opt/tools/HEXAGON_Tools/19.0.04/Tools/bin/hexagon-link --set-interpreter ${pkgs.stdenv.cc.bintools.dynamicLinker} --set-rpath $lib
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
description = "Hexagon SDK for working with the Qualcomm NPU/DSP";
|
||||||
|
homepage = "https://github.com/snapdragon-toolchain/hexagon-sdk";
|
||||||
|
license = lib.licenses.unfree;
|
||||||
|
platforms = [
|
||||||
|
"x86_64-linux"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user