Skip to content

Commit

Permalink
Update NixOS flake
Browse files Browse the repository at this point in the history
  • Loading branch information
rsdy committed May 25, 2022
1 parent b5f8055 commit 3e680d5
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 9 deletions.
28 changes: 22 additions & 6 deletions flake.lock

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

19 changes: 16 additions & 3 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,30 @@
nixpkgs.url = "nixpkgs";
utils.url = "github:numtide/flake-utils";
naersk.url = "github:nix-community/naersk";
mozillapkgs.url = "github:mozilla/nixpkgs-mozilla";
flake-compat = {
url = "github:edolstra/flake-compat";
flake = false;
};
};

outputs = { self, nixpkgs, utils, naersk, ... }:
outputs = { self, nixpkgs, utils, naersk, mozillapkgs, ... }:
utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs { inherit system; };
naersk-lib = naersk.lib."${system}";

# Get a specific rust version
mozilla = pkgs.callPackage (mozillapkgs + "/package-set.nix") { };
rust = (mozilla.rustChannelOf {
date = "2022-05-19";
channel = "stable";
sha256 = "oro0HsosbLRAuZx68xd0zfgPl6efNj2AQruKRq3KA2g=";
}).rust;

naersk-lib = naersk.lib."${system}".override {
cargo = rust;
rustc = rust;
};
in
rec {
packages.zerostash = naersk-lib.buildPackage {
Expand All @@ -25,7 +38,7 @@
};

name = "zerostash";
version = "0.3.0";
version = "0.4.0";

src = ./.;
root = ./.;
Expand Down

0 comments on commit 3e680d5

Please sign in to comment.