Skip to content

Commit

Permalink
feat(build): #546 use experimental flake support
Browse files Browse the repository at this point in the history
- Use the experimental flake support in this repo to help uncover bugs
  • Loading branch information
blaggacao authored and kamadorueda committed Sep 18, 2021
1 parent 9fc5bbe commit 07e4587
Showing 1 changed file with 16 additions and 8 deletions.
24 changes: 16 additions & 8 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,9 @@
nixpkgs.url = "github:nixos/nixpkgs";
};

outputs = { nixpkgs, ... }:
let makes = import ./default.nix { system = "x86_64-linux"; };
in
{
defaultPackage.x86_64-linux = makes;

defaultApp.x86_64-linux.program = "${makes}/bin/m";
defaultApp.x86_64-linux.type = "app";
outputs = { self, nixpkgs, ... }@inputs:
let
makes = import ./default.nix { system = "x86_64-linux"; };

lib.flakes.evaluate =
{ inputs
Expand Down Expand Up @@ -42,5 +37,18 @@
"config:cacheAsJson" = evaluated.config.cacheAsJson;
};
};
in

(lib.flakes.evaluate { inputs = inputs // { makes = self; }; system = "x86_64-linux"; })

//

{
inherit lib;

defaultPackage.x86_64-linux = makes;

defaultApp.x86_64-linux.program = "${makes}/bin/m";
defaultApp.x86_64-linux.type = "app";
};
}

0 comments on commit 07e4587

Please sign in to comment.