-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpackage.nix
More file actions
49 lines (41 loc) · 968 Bytes
/
package.nix
File metadata and controls
49 lines (41 loc) · 968 Bytes
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
{
lib,
rustPlatform,
versionCheckHook,
}:
rustPlatform.buildRustPackage {
pname = "trix";
version = "0.2.0";
src = lib.fileset.toSource {
root = ./.;
fileset = lib.fileset.unions [
./Cargo.toml
./Cargo.lock
./tests
./src
./direnvrc
];
};
cargoHash = "sha256-+WqqNTcl0Q9UlGRGJePI9HEeBwZ+wOhE8dPi+tWytz0=";
dontUseCargoParallelTests = true;
doCheck = false;
postInstall = ''
mkdir -p $out/share/trix/nix
cp src/resources/*.nix $out/share/trix/nix/
cp direnvrc $out/share/trix/
'';
doInstallCheck = true;
nativeInstallCheckInputs = [ versionCheckHook ];
versionCheckProgramArg = "--version";
meta = {
description = "trick yourself into flakes";
homepage = "https://github.com/aanderse/trix";
license = lib.licenses.mit;
mainProgram = "trix";
maintainers = with lib.maintainers; [
aanderse
drupol
];
platforms = lib.platforms.all;
};
}