Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- description = "A nix-store exploration tool";
- inputs = {
- flake-utils.url = "github:numtide/flake-utils";
- nixpkgs.url = "github:NixOS/nixpkgs/release-20.09";
- rust-overlay.url = "github:oxalica/rust-overlay/master";
- cargo2nix = {
- url = "github:cargo2nix/cargo2nix";
- flake = false;
- };
- };
- outputs = { self, nixpkgs, rust-overlay, flake-utils, cargo2nix }:
- flake-utils.lib.eachDefaultSystem
- (
- system:
- let
- pkgs = import nixpkgs { overlays = [ (import rust-overlay) ]; };
- rustPkgs = pkgs.rustBuilder.makePackageSet' {
- rustChannel = "1.50.0";
- packageFun = import ./Cargo.nix;
- };
- in
- rec {
- packages = flake-utils.lib.flattenTree {
- nix-ray = rustPkgs.workspace.nix-ray;
- };
- defaultPackage = packages.nix-ray;
- apps.hello = flake-utils.lib.mkApp { drv = packages.nix-ray; };
- defaultApp = apps.hello;
- devShell = pkgs.mkShell {
- nativeBuildInputs = [ pkgs.hello ];
- };
- }
- );
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement