mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-02-07 12:19:07 +00:00
decker: init at unstable-2022-11-02
This commit is contained in:
parent
84e9866af1
commit
f27a50cdcc
61
pkgs/decker/default.nix
Normal file
61
pkgs/decker/default.nix
Normal file
@ -0,0 +1,61 @@
|
||||
{ stdenv
|
||||
, lib
|
||||
, fetchFromGitHub
|
||||
, SDL2
|
||||
, SDL2_image
|
||||
, unixtools
|
||||
, multimarkdown
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "decker";
|
||||
version = "unstable-2022-11-02";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "JohnEarnest";
|
||||
repo = "Decker";
|
||||
rev = "82dfe0c764aaad1ceb212ba5308ba3e3ff972dee";
|
||||
sha256 = "sha256-d9o/Lwx1gBzv6CxrvRySk7Vqj09o1zob7mSLvsOJTeA=";
|
||||
};
|
||||
|
||||
buildInputs = [
|
||||
SDL2
|
||||
SDL2_image
|
||||
multimarkdown
|
||||
unixtools.xxd
|
||||
];
|
||||
|
||||
buildPhase = ''
|
||||
make lilt
|
||||
make decker
|
||||
make docs
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
install -Dm0755 ./c/build/lilt -t $out/bin
|
||||
install -Dm0755 ./c/build/decker -t $out/bin
|
||||
install -Dm0644 ./syntax/vim/ftdetect/lil.vim -t $out/etc/xdg/vim/ftdetect
|
||||
install -Dm0644 ./syntax/vim/syntax/lil.vim -t $out/etc/xdg/vim/syntax
|
||||
install -Dm0644 ./examples/decks/*.deck -t $out/share/decker/examples/decks
|
||||
install -Dm0644 ./examples/lilt/*.lil -t $out/share/decker/examples/lilt
|
||||
|
||||
mkdir -p $out/share/doc
|
||||
cp -r ./docs/* $out/share/doc
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
postPatch = ''
|
||||
patchShebangs ./scripts/*
|
||||
substituteInPlace ./scripts/install.sh --replace "sudo " ""
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://beyondloom.com/decker/index.html";
|
||||
description = "Multimedia platform for creating and sharing interactive documents";
|
||||
license = licenses.mit;
|
||||
platforms = platforms.all;
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user