on master help sign in
flake: Packaging definition.
41c0d58Blaž Hrastnik
Cargo.lock−11
@@ -199,7 +199,6 @@ dependencies = [
199 "libc",
199 "libc",
200 "num-integer",
200 "num-integer",
201 "num-traits",
201 "num-traits",
202− "time",
203 "winapi",
202 "winapi",
204]
203]
205
204
@@ -1265,16 +1264,6 @@ dependencies = [
1265 "once_cell",
1264 "once_cell",
1266]
1265]
1267
1266
1268−[[package]]
1269−name = "time"
1270−version = "0.1.43"
1271−source = "registry+https://github.com/rust-lang/crates.io-index"
1272−checksum = "ca8a50ef2360fbd1eeb0ecd46795a87a19024eb4b53c5dc916ca1fd95fe62438"
1273−dependencies = [
1274− "libc",
1275− "winapi",
1276−]
1277−
1278[[package]]
1267[[package]]
1279name = "tinyvec"
1268name = "tinyvec"
1280version = "1.1.1"
1269version = "1.1.1"
flake.lock+41−9
@@ -30,13 +30,44 @@
30 "type": "github"
30 "type": "github"
31 }
31 }
32 },
32 },
33+ "naersk": {
34+ "inputs": {
35+ "nixpkgs": "nixpkgs"
36+ },
37+ "locked": {
38+ "lastModified": 1613655351,
39+ "narHash": "sha256-BLBnt3BYsh92qKgqZljckM9s5sZUt30cBQF5b/5pVCU=",
40+ "owner": "nmattia",
41+ "repo": "naersk",
42+ "rev": "1a9e5ddc51bc44c1bf872e02fe2702dc40e8af48",
43+ "type": "github"
44+ },
45+ "original": {
46+ "owner": "nmattia",
47+ "repo": "naersk",
48+ "type": "github"
49+ }
50+ },
33 "nixpkgs": {
51 "nixpkgs": {
34 "locked": {
52 "locked": {
35− "lastModified": 1612996220,
53+ "lastModified": 1613917044,
36− "narHash": "sha256-l2kzWXxL3vXr8VxUzRtORPJS0nFQ3E5kBPF/AYAK0wI=",
54+ "narHash": "sha256-YvBBwtvrnove51SXQ67OVQHctYjEEpFu6GEzRe0pp5I=",
55+ "path": "/nix/store/8mfw3h418igbhn3kh2fglr3nm96x3117-source",
56+ "rev": "aed173ff9707387b238c1c7e143152ca9d8878e9",
57+ "type": "path"
58+ },
59+ "original": {
60+ "id": "nixpkgs",
61+ "type": "indirect"
62+ }
63+ },
64+ "nixpkgs_2": {
65+ "locked": {
66+ "lastModified": 1613761605,
67+ "narHash": "sha256-lUF6UPR96ZzQC0faNXBHLoLhNAdxZqYqDwz0PaIZ/7Y=",
37 "owner": "nixos",
68 "owner": "nixos",
38 "repo": "nixpkgs",
69 "repo": "nixpkgs",
39− "rev": "758b29b5a28b818e311ad540637a5c1e40867489",
70+ "rev": "9816b99e71c3504b0b4c1f8b2e004148460029d4",
40 "type": "github"
71 "type": "github"
41 },
72 },
42 "original": {
73 "original": {
@@ -46,7 +77,7 @@
46 "type": "github"
77 "type": "github"
47 }
78 }
48 },
79 },
49− "nixpkgs_2": {
80+ "nixpkgs_3": {
50 "locked": {
81 "locked": {
51 "lastModified": 1609079092,
82 "lastModified": 1609079092,
52 "narHash": "sha256-KhyKfxBHtZlAgudpZ0EJVzeuqROjKfVOwj8j0cuhU50=",
83 "narHash": "sha256-KhyKfxBHtZlAgudpZ0EJVzeuqROjKfVOwj8j0cuhU50=",
@@ -62,21 +93,22 @@
62 "root": {
93 "root": {
63 "inputs": {
94 "inputs": {
64 "flake-utils": "flake-utils",
95 "flake-utils": "flake-utils",
96+ "naersk": "naersk",
65− "nixpkgs": "nixpkgs",
97+ "nixpkgs": "nixpkgs_2",
66 "rust-overlay": "rust-overlay"
98 "rust-overlay": "rust-overlay"
67 }
99 }
68 },
100 },
69 "rust-overlay": {
101 "rust-overlay": {
70 "inputs": {
102 "inputs": {
71 "flake-utils": "flake-utils_2",
103 "flake-utils": "flake-utils_2",
72− "nixpkgs": "nixpkgs_2"
104+ "nixpkgs": "nixpkgs_3"
73 },
105 },
74 "locked": {
106 "locked": {
75− "lastModified": 1613096734,
107+ "lastModified": 1613960870,
76− "narHash": "sha256-ttHv5tlL8JGn26V2xMQMjNy5Om6WKN1RhB2OxXhF4rY=",
108+ "narHash": "sha256-SvBexW2AGCaiNGXVaQ/6f31vSttrJs1K8VVVhuvkXeA=",
77 "owner": "oxalica",
109 "owner": "oxalica",
78 "repo": "rust-overlay",
110 "repo": "rust-overlay",
79− "rev": "0ae7d76e9f72ef5c225710946c79c50a9eafe2f9",
111+ "rev": "455f57703929bb5dc6e965cc6933c0e6f005a236",
80 "type": "github"
112 "type": "github"
81 },
113 },
82 "original": {
114 "original": {
flake.nix+10−3
@@ -5,15 +5,22 @@
5 nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
5 nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
6 flake-utils.url = "github:numtide/flake-utils";
6 flake-utils.url = "github:numtide/flake-utils";
7 rust-overlay.url = "github:oxalica/rust-overlay";
7 rust-overlay.url = "github:oxalica/rust-overlay";
8+ naersk.url = "github:nmattia/naersk";
8 };
9 };
9
10
10− outputs = inputs@{ self, nixpkgs, rust-overlay, flake-utils, ... }:
11+ outputs = inputs@{ self, nixpkgs, naersk, rust-overlay, flake-utils, ... }:
11 flake-utils.lib.eachDefaultSystem (system:
12 flake-utils.lib.eachDefaultSystem (system:
12 let
13 let
13 pkgs = import nixpkgs { inherit system; overlays = [ rust-overlay.overlay ]; };
14 pkgs = import nixpkgs { inherit system; overlays = [ rust-overlay.overlay ]; };
15+ naerskLib = pkgs.callPackage naersk {
16+ inherit (pkgs.rust-bin.nightly.latest) rustc cargo;
17+ };
14 in rec {
18 in rec {
15− # packages.helix = pkgs.callPackage ./default.nix {};
19+ packages.helix = naerskLib.buildPackage {
20+ pname = "helix";
21+ root = ./.;
22+ };
16− # defaultPackage = packages.helix;
23+ defaultPackage = packages.helix;
17 devShell = pkgs.callPackage ./shell.nix {};
24 devShell = pkgs.callPackage ./shell.nix {};
18 });
25 });
19}
26}