Skip to content

Commit

Permalink
Merge branch 'no-more-naersk'
Browse files Browse the repository at this point in the history
* no-more-naersk:
  Remove naersk from flake deps
  • Loading branch information
antifuchs committed Dec 2, 2021
2 parents 74f6604 + 4b87d1c commit 0bd2a46
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 45 deletions.
48 changes: 8 additions & 40 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 8 additions & 5 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,26 +3,29 @@

inputs = {
flake-utils.url = "github:numtide/flake-utils";
naersk.url = "github:nmattia/naersk";
};

outputs = { self, nixpkgs, flake-utils, naersk, ... }:
outputs = { self, nixpkgs, flake-utils, ... }:
flake-utils.lib.eachDefaultSystem
(system:
let
pkgs = nixpkgs.legacyPackages.${system};
naersk-lib = naersk.lib."${system}";
nativeBuildInputs = with pkgs; [ pkgconfig zfs zfs.dev ];
nativeBuildInputs = with pkgs; [ pkgconfig zfs.dev ];
in
rec {
devShell =
pkgs.mkShell {
inherit nativeBuildInputs;
};

packages.zpool-exporter-textfile = naersk-lib.buildPackage {
packages.zpool-exporter-textfile = pkgs.rustPlatform.buildRustPackage rec {
pname = "zpool-exporter-textfile";
version = (builtins.fromTOML (builtins.readFile ./Cargo.toml)).package.version;
inherit nativeBuildInputs;
src = ./.;
cargoLock.lockFile = ./Cargo.lock;

buildInputs = nativeBuildInputs;
};

defaultPackage = packages.zpool-exporter-textfile;
Expand Down

0 comments on commit 0bd2a46

Please sign in to comment.