add inkscape-xwayland
This commit is contained in:
parent
5323992f5b
commit
bf3111d84f
2 changed files with 35 additions and 7 deletions
19
apps/inkscape-xwayland.nix
Normal file
19
apps/inkscape-xwayland.nix
Normal file
|
@ -0,0 +1,19 @@
|
|||
{ inkscape, stdenv, writeScript }:
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "inkscape-xwayland";
|
||||
inherit (inkscape) version;
|
||||
meta.description = "Inkscape but forced to run under XWayland";
|
||||
|
||||
script = writeScript "inkscape-xwayland" ''
|
||||
#!/usr/bin/env bash
|
||||
export GDK_BACKEND=x11
|
||||
${inkscape}/bin/inkscape "$@"
|
||||
'';
|
||||
|
||||
buildInputs = [ inkscape ];
|
||||
dontUnpack = true; dontFixup = true;
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
cp ${script} $out/bin/inkscape
|
||||
'';
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue