Merge master into staging-next
This commit is contained in:
@@ -0,0 +1,53 @@
|
||||
{ lib
|
||||
, fetchzip
|
||||
, fetchpatch
|
||||
, cups
|
||||
, python3Packages
|
||||
}:
|
||||
|
||||
python3Packages.buildPythonApplication rec {
|
||||
pname = "rastertosag-gdi";
|
||||
version = "0.1";
|
||||
src = fetchzip {
|
||||
url = "https://www.openprinting.org/download/printing/${pname}/${pname}-${version}.tar.gz";
|
||||
sha256 = "1ldplpv497j8vhw24sksg3fiw8c5pqr0wajajh7p5xpvb6zlcmvw";
|
||||
};
|
||||
patches = [
|
||||
# port to python 3
|
||||
( fetchpatch {
|
||||
url = "https://sources.debian.org/data/main/r/${pname}/0.1-7/debian/patches/0001-${pname}-python3.patch";
|
||||
sha256 = "1l3xbrs67025595k9ba5794q3s74anizpbxwsshcfhmbrzd9h8hg";
|
||||
})
|
||||
];
|
||||
format = "other";
|
||||
nativeBuildInputs = [ (lib.getBin cups) ];
|
||||
# The source image also brings pre-built ppd files,
|
||||
# be we prefer to generate from source where possible, so
|
||||
# the following line generates ppd files from the drv file.
|
||||
postBuild = ''
|
||||
ppdc -v -d . -I "${cups}/share/cups/ppdc" rastertosag-gdi.drv
|
||||
'';
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
install -vDm 0644 -t "${placeholder "out"}/share/cups/model/rastertosag-gdi/" *.ppd
|
||||
install -vDm 0755 -t "${placeholder "out"}/bin/" rastertosag-gdi
|
||||
install -vd "${placeholder "out"}/lib/cups/filter/"
|
||||
ln -vst "${placeholder "out"}/lib/cups/filter/" "${placeholder "out"}/bin/rastertosag-gdi"
|
||||
runHook postInstall
|
||||
'';
|
||||
meta = {
|
||||
description = "CUPS driver for Ricoh Aficio SP 1000S and SP 1100S printers";
|
||||
downloadPage = "https://www.openprinting.org/download/printing/rastertosag-gdi/";
|
||||
homepage = "https://www.openprinting.org/driver/rastertosag-gdi/";
|
||||
license = lib.licenses.free; # just "GPL", according to README
|
||||
maintainers = [ lib.maintainers.yarny ];
|
||||
longDescription = ''
|
||||
This package brings CUPS raster filter
|
||||
for Ricoh Aficio SP 1000S and SP 1100S.
|
||||
In contrast to other Ricoh laser printers,
|
||||
they use the proprietary SAG-GDI raster format by
|
||||
Sagem Communication and do not understand PCL or PostScript.
|
||||
Therefore they do not work with Ricoh's PPD files.
|
||||
'';
|
||||
};
|
||||
}
|
||||
@@ -13,13 +13,13 @@
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "ruffle";
|
||||
version = "nightly-2021-01-12";
|
||||
version = "nightly-2021-04-02";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "ruffle-rs";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "1lywxn61w0b3pb8vjpavd9f3v58gq35ypwp41b7rjkc4rjxmf3cd";
|
||||
sha256 = "1diz94y53hvii28894zz65aya12v8yw1864lqpkrdbj67yc6ykdj";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
@@ -42,10 +42,13 @@ rustPlatform.buildRustPackage rec {
|
||||
];
|
||||
|
||||
postInstall = ''
|
||||
# This name is too generic
|
||||
mv $out/bin/exporter $out/bin/ruffle_exporter
|
||||
|
||||
wrapProgram $out/bin/ruffle_desktop --prefix LD_LIBRARY_PATH ':' ${vulkan-loader}/lib
|
||||
'';
|
||||
|
||||
cargoSha256 = "113gh8nf2fs9shfvnzpwlc7zaq1l9l9jhlybcc4dq0wr4r8qpff5";
|
||||
cargoSha256 = "0pnp5kmij4dwwvmgdv81mqcawcjcgg5gd6cpyf0xalyfjgj8i732";
|
||||
|
||||
meta = with lib; {
|
||||
description = "An Adobe Flash Player emulator written in the Rust programming language.";
|
||||
|
||||
Reference in New Issue
Block a user