diff options
author | Akshay <[email protected]> | 2023-05-07 12:41:48 +0100 |
---|---|---|
committer | Akshay <[email protected]> | 2023-05-07 12:41:48 +0100 |
commit | f13e8be9f32c5ca7f70dc809e3d43144f8e31396 (patch) | |
tree | b0cf92d61a3ae3780cea633697e6cf5104132984 /flake.nix | |
parent | 83c91eeeab4080d4dccd87607cf887e0133aa625 (diff) |
progress
Diffstat (limited to 'flake.nix')
-rw-r--r-- | flake.nix | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -1,5 +1,5 @@ | |||
1 | { | 1 | { |
2 | description = "build rust binaries"; | 2 | description = "a unixy rss/atom reader"; |
3 | 3 | ||
4 | outputs = { self, nixpkgs }: | 4 | outputs = { self, nixpkgs }: |
5 | let | 5 | let |
@@ -13,7 +13,7 @@ | |||
13 | { | 13 | { |
14 | 14 | ||
15 | overlays.default = final: prev: { | 15 | overlays.default = final: prev: { |
16 | rust-bin = | 16 | syn = |
17 | let | 17 | let |
18 | packageMeta = (final.lib.importTOML ./Cargo.toml).package; | 18 | packageMeta = (final.lib.importTOML ./Cargo.toml).package; |
19 | in | 19 | in |
@@ -21,15 +21,17 @@ | |||
21 | pname = packageMeta.name; | 21 | pname = packageMeta.name; |
22 | inherit (packageMeta) version; | 22 | inherit (packageMeta) version; |
23 | src = self; | 23 | src = self; |
24 | nativeBuildInputs = [ final.pkg-config ]; | ||
25 | buildInputs = [ final.openssl ]; | ||
24 | cargoLock.lockFile = ./Cargo.lock; | 26 | cargoLock.lockFile = ./Cargo.lock; |
25 | }; | 27 | }; |
26 | }; | 28 | }; |
27 | 29 | ||
28 | packages = forAllSystems (system: { | 30 | packages = forAllSystems (system: { |
29 | inherit (nixpkgsFor."${system}") rust-bin; | 31 | inherit (nixpkgsFor."${system}") syn; |
30 | }); | 32 | }); |
31 | 33 | ||
32 | defaultPackage = forAllSystems (system: self.packages."${system}".rust-bin); | 34 | defaultPackage = forAllSystems (system: self.packages."${system}".syn); |
33 | 35 | ||
34 | devShell = forAllSystems (system: | 36 | devShell = forAllSystems (system: |
35 | let | 37 | let |