Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
22a9b12a25 |
No files matched your search
@@ -13,6 +13,7 @@ in
|
||||
windowtolayer = callPackage ./windowtolayer.nix { };
|
||||
swaylock-plugin = callPackage ./swaylock-plugin.nix { };
|
||||
firefox-memory-control = callPackage ./firefox-memory-control { };
|
||||
tracedraw = callPackage ./tracedraw.nix { };
|
||||
|
||||
update-docs-assignments = pkgs.writeShellScriptBin "update-docs-assignments" ''
|
||||
exec ${pkgs.python3}/bin/python3 ${../ci/update-docs-assignments.py} "$@"
|
||||
|
||||
@@ -0,0 +1,66 @@
|
||||
{ lib
|
||||
, fetchFromGitHub
|
||||
, rustPlatform
|
||||
, pkg-config
|
||||
, makeWrapper
|
||||
, cups
|
||||
, libGL
|
||||
, libxcursor
|
||||
, libxi
|
||||
, libxkbcommon
|
||||
, libxrandr
|
||||
, libx11
|
||||
, vulkan-loader
|
||||
, wayland
|
||||
, xdg-utils
|
||||
}:
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "tracedraw";
|
||||
version = "0.53.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "tracedraw";
|
||||
repo = "tracedraw";
|
||||
tag = "v${version}";
|
||||
hash = "sha256-4pHEN4i+8xwyLrdQz3qfPmbt5CS1nQw2/mgEenXSZ6I=";
|
||||
};
|
||||
|
||||
cargoHash = "sha256-VvtHt6pajYwdSvtNm21wSm9Pir/+JwrM5147TR9jMSY=";
|
||||
cargoBuildFlags = [ "-p" "tracedraw" "-p" "tracedraw-cli" ];
|
||||
|
||||
# The editor's test binary is substantially larger than the editor itself.
|
||||
cargoTestFlags = [ "-p" "tracedraw-cli" "--tests" ];
|
||||
|
||||
nativeBuildInputs = [ pkg-config makeWrapper ];
|
||||
buildInputs = [ libxkbcommon wayland ];
|
||||
|
||||
postInstall = ''
|
||||
install -Dm644 packaging/linux/tracedraw.desktop -t "$out/share/applications"
|
||||
install -Dm644 assets/icon/tracedraw-256.png "$out/share/icons/hicolor/256x256/apps/tracedraw.png"
|
||||
install -Dm644 packaging/linux/tracedraw-mime.xml "$out/share/mime/packages/tracedraw.xml"
|
||||
install -Dm644 packaging/linux/tracedraw.thumbnailer -t "$out/share/thumbnailers"
|
||||
'';
|
||||
|
||||
postFixup = ''
|
||||
wrapProgram "$out/bin/tracedraw" \
|
||||
--prefix LD_LIBRARY_PATH : "${lib.makeLibraryPath [
|
||||
libGL
|
||||
libxcursor
|
||||
libxi
|
||||
libxkbcommon
|
||||
libxrandr
|
||||
libx11
|
||||
vulkan-loader
|
||||
wayland
|
||||
]}" \
|
||||
--suffix PATH : "${lib.makeBinPath [ cups xdg-utils ]}"
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "Vector illustration, page layout and print editor";
|
||||
homepage = "https://github.com/tracedraw/tracedraw";
|
||||
license = with lib.licenses; [ mit asl20 ];
|
||||
mainProgram = "tracedraw";
|
||||
platforms = [ "x86_64-linux" "aarch64-linux" ];
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user