- Switch from 'rev' to 'tag' attribute in fetchFromGitHub/fetchgit calls - Update 'sha256' to 'hash' for consistency - Convert to finalAttrs pattern where applicable - Replace 'with lib' with explicit lib prefixes - Use 'replace-fail' variants for substitutions - Update python3.pkgs to python3Packages pattern - Switch propagatedBuildInputs to dependencies for Python packages - Fix .pc file meta attribute interpolation Affected packages: autotrash, banana-vera, cano, cista, coost, cppi, criterion, diagrams-as-code, filterpath, fzf-make, gbsplay, gfold, git-pr, git-standup, hexedit, hueadm, ksh, liboqs, libowlevelzs, libsv, mini-calc, nph, physac, ps_mem, ragnarwm, rasm, raygui, sxcs, toolong, tuifimanager, unipicker, ustr, viu, xml-tooling-c, yyjson
48 lines
1.1 KiB
Nix
48 lines
1.1 KiB
Nix
{
|
|
stdenvNoCC,
|
|
fetchFromGitHub,
|
|
lib,
|
|
}:
|
|
|
|
stdenvNoCC.mkDerivation (finalAttrs: {
|
|
pname = "physac";
|
|
version = "1.1-unstable-2023-12-11";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "victorfisac";
|
|
repo = "Physac";
|
|
rev = "29d9fc06860b54571a02402fff6fa8572d19bd12";
|
|
hash = "sha256-PTlV1tT0axQbmGmJ7JD1n6wmbIxUdu7xho78EO0HNNk=";
|
|
};
|
|
|
|
dontBuild = true;
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
mkdir -p $out/{include,lib/pkgconfig}
|
|
|
|
install -Dm644 $src/src/physac.h $out/include/physac.h
|
|
|
|
cat <<EOF > $out/lib/pkgconfig/physac.pc
|
|
prefix=$out
|
|
includedir=$out/include
|
|
|
|
Name: physac
|
|
Description: 2D physics header-only library for raylib
|
|
URL: https://github.com/victorfisac/Physac
|
|
Version: ${finalAttrs.version}
|
|
Cflags: -I"{includedir}"
|
|
EOF
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = {
|
|
description = "2D physics header-only library for raylib";
|
|
homepage = "https://github.com/victorfisac/Physac";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ sigmanificient ];
|
|
platforms = lib.platforms.unix;
|
|
};
|
|
})
|