-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdefault.nix
31 lines (24 loc) · 830 Bytes
/
default.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
{ pkgs ? import <nixpkgs> {} }:
pkgs.rustPlatform.buildRustPackage rec {
pname = "quickpreview_wrapper";
version = "0.1.0";
src = ./.;
cargoLock = {
lockFile = ./Cargo.lock;
};
nativeBuildInputs = with pkgs; [ pkg-config ]
++ pkgs.lib.optionals pkgs.stdenv.isDarwin [
pkgs.darwin.apple_sdk.frameworks.Cocoa
pkgs.darwin.apple_sdk.frameworks.Quartz
];
buildInputs = with pkgs; [ ]
++ pkgs.lib.optionals pkgs.stdenv.isLinux [ xorg.libX11 ];
NIX_LDFLAGS = pkgs.lib.optionalString pkgs.stdenv.isDarwin
"-framework Cocoa -framework Quartz";
meta = with pkgs.lib; {
description = "A wrapper for quickpreview tools";
homepage = "https://github.com/yourusername/quickpreview_wrapper";
license = licenses.mit;
maintainers = [ maintainers.yourgithubusername ];
};
}