forked from NixOS/nixpkgs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
73 changed files
with
1,039 additions
and
827 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
{ lib, stdenv, fetchFromGitHub, SDL_compat }: | ||
|
||
stdenv.mkDerivation rec { | ||
pname = "rvvm"; | ||
version = "unstable-2023-01-25"; | ||
|
||
src = fetchFromGitHub { | ||
owner = "LekKit"; | ||
repo = "RVVM"; | ||
rev = "4de27d7083db34bd074b4f056d6eb3871ccf5c10"; | ||
sha256 = "sha256-FjEcXfweL6FzA6iLxl9XnKaD4Fh/wZuRTJzZzHkc/B4="; | ||
}; | ||
|
||
buildInputs = [ SDL_compat ]; | ||
|
||
makeFlags = | ||
[ "BUILDDIR=out" "BINARY=rvvm" "USE_SDL=1" "GIT_COMMIT=${src.rev}" "all" "lib" ] | ||
# work around https://github.com/NixOS/nixpkgs/issues/19098 | ||
++ lib.optional (stdenv.cc.isClang && stdenv.isDarwin) "CFLAGS=-fno-lto"; | ||
|
||
installPhase = '' | ||
runHook preInstall | ||
install -d $out/{bin,lib,include/devices} | ||
install -m755 out/rvvm -t $out/bin | ||
install -m755 out/librvvm.{a,so} -t $out/lib | ||
install -m644 src/rvvmlib.h -t $out/include | ||
install -m644 src/devices/*.h -t $out/include/devices | ||
runHook postInstall | ||
''; | ||
|
||
meta = with lib; { | ||
homepage = "https://github.com/LekKit/RVVM"; | ||
description = "The RISC-V Virtual Machine"; | ||
license = with licenses; [ gpl3 /* or */ mpl20 ]; | ||
platforms = platforms.linux ++ platforms.darwin; | ||
maintainers = with maintainers; [ nebulka ]; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,33 @@ | ||
# when changing this expression convert it from 'fetchzip' to 'stdenvNoCC.mkDerivation' | ||
{ lib, fetchzip }: | ||
{ lib, stdenvNoCC, fetchzip }: | ||
|
||
let | ||
stdenvNoCC.mkDerivation rec { | ||
pname = "andika"; | ||
version = "6.101"; | ||
name = "andika-${version}"; | ||
in | ||
(fetchzip rec { | ||
inherit name; | ||
|
||
src = fetchzip { | ||
url = "https://software.sil.org/downloads/r/andika/Andika-${version}.zip"; | ||
hash = "sha256-LghkGd/cjuXghzsU9X/YneNIdBeDEnu0ARszipANm8w="; | ||
}; | ||
|
||
sha256 = "sha256-J/Ad+fmCMOxLoo+691LE6Bgi/l3ovIfWScwwVWtqACI="; | ||
installPhase = '' | ||
runHook preInstall | ||
meta = with lib; { | ||
homepage = "https://software.sil.org/andika"; | ||
description = "A family designed especially for literacy use taking into account the needs of beginning readers"; | ||
longDescription = '' | ||
install -Dm644 *.ttf -t $out/share/fonts/truetype | ||
install -Dm644 *OFL.txt *OFL-FAQ.txt *README.txt *FONTLOG.txt -t $out/share/doc/${pname}-${version} | ||
runHook postInstall | ||
''; | ||
|
||
meta = with lib; { | ||
homepage = "https://software.sil.org/andika"; | ||
description = "A family designed especially for literacy use taking into account the needs of beginning readers"; | ||
longDescription = '' | ||
Andika is a sans serif, Unicode-compliant font designed especially for literacy use, taking into account the needs of beginning readers. The focus is on clear, easy-to-perceive letterforms that will not be readily confused with one another. | ||
A sans serif font is preferred by some literacy personnel for teaching people to read. Its forms are simpler and less cluttered than those of most serif fonts. For years, literacy workers have had to make do with fonts that were not really suitable for beginning readers and writers. In some cases, literacy specialists have had to tediously assemble letters from a variety of fonts in order to get all of the characters they need for their particular language project, resulting in confusing and unattractive publications. Andika addresses those issues. | ||
''; | ||
license = licenses.ofl; | ||
platforms = platforms.all; | ||
maintainers = [ maintainers.f--t ]; | ||
}; | ||
}).overrideAttrs (_: { | ||
postFetch = '' | ||
mkdir -p $out/share/{doc,fonts} | ||
unzip -j $downloadedFile \*.ttf -d $out/share/fonts/truetype | ||
unzip -j $downloadedFile \*OFL.txt \*OFL-FAQ.txt \*README.txt \*FONTLOG.txt -d "$out/share/doc/${name}" | ||
''; | ||
}) | ||
license = licenses.ofl; | ||
platforms = platforms.all; | ||
maintainers = [ maintainers.f--t ]; | ||
}; | ||
} |
Oops, something went wrong.