rename package file

This commit is contained in:
rhiannon morris 2024-12-13 18:50:33 +01:00
parent 6e77a7c4e8
commit 832d2fe674

19
inkscape-xwayland.nix Normal file
View 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-xwayland
'';
}