nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at devShellTools-shell 37 lines 804 B view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 python3, 6 replaceVars, 7}: 8 9stdenv.mkDerivation rec { 10 pname = "libelfin"; 11 version = "0.3-unstable-2024-03-11"; 12 13 src = fetchFromGitHub { 14 owner = "aclements"; 15 repo = "libelfin"; 16 rev = "e0172767b79b76373044118ef0272b49b02a0894"; 17 hash = "sha256-xb5/DM2XOFM/w71OwRC/sCRqOSQvxVL1SS2zj2+dD/U="; 18 }; 19 20 patches = [ 21 (replaceVars ./0001-Don-t-detect-package-version-with-Git.patch { 22 inherit version; 23 }) 24 ]; 25 26 nativeBuildInputs = [ python3 ]; 27 28 makeFlags = [ "PREFIX=${placeholder "out"}" ]; 29 30 meta = { 31 homepage = "https://github.com/aclements/libelfin/"; 32 license = lib.licenses.mit; 33 description = "C++11 ELF/DWARF parser"; 34 maintainers = with lib.maintainers; [ aleksana ]; 35 platforms = lib.platforms.linux; 36 }; 37}