mirror of
https://github.com/helix-editor/helix.git
synced 2025-04-03 19:07:44 +03:00
flake: Packaging definition.
This commit is contained in:
parent
def949e509
commit
41c0d5828f
3 changed files with 51 additions and 23 deletions
13
flake.nix
13
flake.nix
|
@ -5,15 +5,22 @@
|
|||
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
||||
flake-utils.url = "github:numtide/flake-utils";
|
||||
rust-overlay.url = "github:oxalica/rust-overlay";
|
||||
naersk.url = "github:nmattia/naersk";
|
||||
};
|
||||
|
||||
outputs = inputs@{ self, nixpkgs, rust-overlay, flake-utils, ... }:
|
||||
outputs = inputs@{ self, nixpkgs, naersk, rust-overlay, flake-utils, ... }:
|
||||
flake-utils.lib.eachDefaultSystem (system:
|
||||
let
|
||||
pkgs = import nixpkgs { inherit system; overlays = [ rust-overlay.overlay ]; };
|
||||
naerskLib = pkgs.callPackage naersk {
|
||||
inherit (pkgs.rust-bin.nightly.latest) rustc cargo;
|
||||
};
|
||||
in rec {
|
||||
# packages.helix = pkgs.callPackage ./default.nix {};
|
||||
# defaultPackage = packages.helix;
|
||||
packages.helix = naerskLib.buildPackage {
|
||||
pname = "helix";
|
||||
root = ./.;
|
||||
};
|
||||
defaultPackage = packages.helix;
|
||||
devShell = pkgs.callPackage ./shell.nix {};
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue