-
Notifications
You must be signed in to change notification settings - Fork 2
/
default.nix
48 lines (44 loc) · 1.21 KB
/
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
{
sources ? import ./nix/sources.nix,
nixpkgs ? import sources.nixpkgs {},
}:
{
logru = nixpkgs.callPackage (
{ bash, lib, nix-gitignore, rustPlatform }:
rustPlatform.buildRustPackage {
pname = "logru";
version = "0.2.0";
src =
let
# Potential extra things to remove
extraFilter = path: type: true;
# Gitignore + extras
gitignore = ''
${builtins.readFile ./.gitignore}
/.git
/.github
/nix
/.envrc
/.gitignore
/rust-toolchain
*.nix
*.md
'';
gitignoreFilter = nix-gitignore.gitignoreFilterPure extraFilter gitignore ./.;
blacklistedSrc = lib.cleanSourceWith {
src = ./.;
filter = gitignoreFilter;
};
in
blacklistedSrc;
cargoSha256 = "sha256-DjqvCFogfWvlTASRPB98ryrFcnlMGGG3x5ssxBmxvKk=";
meta = with lib; {
description = "Logic programming in Rust";
homepage = https://github.com/fatho/logru;
license = licenses.mit;
maintainers = [ "Fabian Thorand" ];
platforms = platforms.all;
};
}
) {};
}