-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
33 lines (30 loc) · 886 Bytes
/
flake.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
{
description = "ip-monitor";
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable-small";
outputs = { self, nixpkgs }: let
overlay = final: prev: {
ip-monitor = final.callPackage (
{ rustPlatform }:
rustPlatform.buildRustPackage {
pname = "ip-monitor";
version = self.shortRev or "dirty-${toString self.lastModifiedDate}";
src = self;
cargoLock = {
lockFile = ./Cargo.lock;
outputHashes = {
"pnet-0.28.0" = "sha256-wWhidrz4tnwUQlDM/ajKZZiVGHJLo4zFb+9w7UFiUZA=";
};
};
doCheck = false;
}
) {};
};
in {
inherit overlay;
packages.x86_64-linux = import nixpkgs {
system = "x86_64-linux";
overlays = [ overlay ];
};
defaultPackage.x86_64-linux = self.packages.x86_64-linux.ip-monitor;
};
}