first
This commit is contained in:
commit
8e3a99718f
2 changed files with 28 additions and 0 deletions
9
flake.nix
Normal file
9
flake.nix
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
{ outputs = { self, nixpkgs }:
|
||||||
|
let
|
||||||
|
system = "x86_64-linux";
|
||||||
|
i-w = nixpkgs.legacyPackages.${system}.callPackage ./inkscape-x11.nix { };
|
||||||
|
in {
|
||||||
|
apps.${system}.default =
|
||||||
|
{ type = "app"; program = "${i-w}/bin/inkscape-xwayland"; };
|
||||||
|
};
|
||||||
|
}
|
19
inkscape-x11.nix
Normal file
19
inkscape-x11.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-xwayland
|
||||||
|
'';
|
||||||
|
}
|
Reference in a new issue