-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflake.nix
More file actions
41 lines (37 loc) · 1.1 KB
/
Copy pathflake.nix
File metadata and controls
41 lines (37 loc) · 1.1 KB
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
{
description = "Low-latency clipboard wrap daemon";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
flake-utils.url = "github:numtide/flake-utils";
home-manager.url = "github:nix-community/home-manager/master";
home-manager.inputs.nixpkgs.follows = "nixpkgs";
};
outputs = { self, nixpkgs, flake-utils, home-manager, ... }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = nixpkgs.legacyPackages.${system};
wrap = pkgs.rustPlatform.buildRustPackage {
pname = "wrap";
version = "0.1.0";
src = ./.;
cargoLock.lockFile = ./Cargo.lock;
};
in
{
packages.default = wrap;
packages.wrap = wrap;
checks.default = wrap;
devShells.default = pkgs.mkShell {
packages = [
pkgs.cargo
pkgs.rustc
pkgs.rustfmt
];
};
}) // {
homeManagerModules.default = import ./nix/home-manager.nix self;
darwinModules.default = {
homebrew.casks = [ "hammerspoon" ];
};
};
}