mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-09 19:13:26 +03:00
blackshades: 2.5.1 -> 2.5.2-unstable-2025-03-12
This commit is contained in:
parent
bb17e1ac26
commit
83782b1568
1 changed files with 30 additions and 5 deletions
|
@ -7,22 +7,47 @@
|
|||
libGLU,
|
||||
libsndfile,
|
||||
openal,
|
||||
zig_0_11,
|
||||
zig_0_14,
|
||||
runCommand,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "blackshades";
|
||||
version = "2.5.1";
|
||||
version = "2.5.2-unstable-2025-03-12";
|
||||
|
||||
src = fetchFromSourcehut {
|
||||
owner = "~cnx";
|
||||
repo = "blackshades";
|
||||
rev = finalAttrs.version;
|
||||
rev = "a2fbe0e08bedbbbb1089dbb8f3e3cb4d76917bd0";
|
||||
fetchSubmodules = true;
|
||||
hash = "sha256-qdpXpuXHr9w2XMfgOVveWv3JoqdJHVB8TCqZdyaw/DM=";
|
||||
hash = "sha256-W6ltmWCw7jfiTiNlh60YVF7mz//8s+bgu4F9gy5cDgw=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ zig_0_11.hook ];
|
||||
postUnpack = ''
|
||||
ln -s ${
|
||||
runCommand "${finalAttrs.finalPackage.name}-zig-deps"
|
||||
{
|
||||
inherit (finalAttrs) src;
|
||||
|
||||
nativeBuildInputs = [ zig_0_14 ];
|
||||
|
||||
outputHashAlgo = null;
|
||||
outputHashMode = "recursive";
|
||||
outputHash = "sha256-wBIfLeaKtTow2Z7gjEgIFmqcTGWgpRWI+k0t294BslM=";
|
||||
}
|
||||
''
|
||||
export ZIG_GLOBAL_CACHE_DIR=$(mktemp -d)
|
||||
|
||||
runHook unpackPhase
|
||||
cd $sourceRoot
|
||||
|
||||
zig build --fetch
|
||||
mv $ZIG_GLOBAL_CACHE_DIR/p $out
|
||||
''
|
||||
} $ZIG_GLOBAL_CACHE_DIR/p
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [ zig_0_14.hook ];
|
||||
|
||||
buildInputs = [
|
||||
glfw
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue