Files
nixpkgs/pkgs/by-name/ch/chelf/package.nix
2026-03-23 22:10:06 +11:00

32 lines
634 B
Nix

{
lib,
stdenv,
fetchFromGitHub,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "chelf";
version = "0.2.2";
src = fetchFromGitHub {
owner = "Gottox";
repo = "chelf";
rev = "v${finalAttrs.version}";
sha256 = "0xwd84aynyqsi2kcndbff176vmhrak3jmn3lfcwya59653pppjr6";
};
installPhase = ''
mkdir -p $out/bin
mv chelf $out/bin/chelf
'';
meta = {
description = "Change or display the stack size of an ELF binary";
homepage = "https://github.com/Gottox/chelf";
license = lib.licenses.bsd2;
platforms = lib.platforms.linux;
maintainers = [ ];
mainProgram = "chelf";
};
})