Skip to content

Instantly share code, notes, and snippets.

@paulvictor
Created February 18, 2025 14:06
Show Gist options
  • Save paulvictor/2b3916da63b3ded1a2972d80f43044c9 to your computer and use it in GitHub Desktop.
Save paulvictor/2b3916da63b3ded1a2972d80f43044c9 to your computer and use it in GitHub Desktop.
schemesh
with import <nixpkgs> {};
stdenv.mkDerivation {
name = "schemesh";
nativeBuildInputs = [ chez makeWrapper ];
buildInputs = [ zlib ncurses libuuid ];
src = pkgs.fetchFromGitHub {
owner = "cosmos72";
repo = "schemesh";
rev = "41ed73efdbdd0a999e170d83f290f74a1c80e005";
hash = "sha256-HJIiAh/1q4HtPyAvFRFEIu/CxSvv7nSgyU872GJaTZs=";
};
buildPhase = ''
mkdir -pv $out/bin
cp -a $src/* .
DESTDIR=$out prefix= SCHEMESH_LIBDIR=/bin make -e install
wrapProgram $out/bin/schemesh --add-flags "--library-dir $out/bin"
'';
phases = [ "buildPhase" ];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment