Simple tool for automatic file management
1# SPDX-FileCopyrightText: 2024 Łukasz Niemier <#@hauleth.dev>
2#
3# SPDX-License-Identifier: EUPL-1.2
4{
5 lib,
6 rustPlatform,
7 stdenv,
8 darwin,
9 libiconv,
10 scdoc,
11}:
12rustPlatform.buildRustPackage {
13 pname = "ptsd";
14 version = "0.0.1";
15
16 src = ./..;
17
18 cargoLock.lockFile = ../Cargo.lock;
19
20 nativeBuildInputs = [
21 scdoc
22 ];
23
24 postInstall = ''
25 OUT=$out/man cargo xtask
26 '';
27
28 buildInputs =
29 []
30 ++ lib.lists.optionals stdenv.isDarwin (with darwin.apple_sdk; [
31 libiconv
32 darwin.libobjc
33 frameworks.Foundation
34 ]);
35}