aboutsummaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
authorAlex <alex@adnab.me>2023-07-18 21:54:51 +0000
committerAlex <alex@adnab.me>2023-07-18 21:54:51 +0000
commit18eb73d52ea5221a76da7d2620d46ae501b99cf6 (patch)
tree2425b6ef61290307625c85592610e86f16670127 /flake.nix
parent6ba611361e6d3ae701ea211adddbed61ea338da7 (diff)
parent79ca8e76a43e8df527c68b00ebc10eaceef9daaa (diff)
downloadgarage-18eb73d52ea5221a76da7d2620d46ae501b99cf6.tar.gz
garage-18eb73d52ea5221a76da7d2620d46ae501b99cf6.zip
Merge pull request 'flake-compat: use nix-community fork' (#599) from flokli/garage:flake-compat into main
Reviewed-on: https://git.deuxfleurs.fr/Deuxfleurs/garage/pulls/599
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix7
1 files changed, 5 insertions, 2 deletions
diff --git a/flake.nix b/flake.nix
index 3ae3668d..32c01616 100644
--- a/flake.nix
+++ b/flake.nix
@@ -6,6 +6,8 @@
inputs.nixpkgs.url =
"github:NixOS/nixpkgs/94517a501434a627c5d9e72ac6e7f26174b978d3";
+ inputs.flake-compat.url = "github:nix-community/flake-compat";
+
inputs.cargo2nix = {
# As of 2022-10-18: two small patches over unstable branch, one for clippy and one to fix feature detection
url = "github:Alexis211/cargo2nix/a7a61179b66054904ef6a195d8da736eaaa06c36";
@@ -20,16 +22,17 @@
"github:oxalica/rust-overlay/74f1a64dd28faeeb85ef081f32cad2989850322c";
inputs.nixpkgs.follows = "nixpkgs";
+ inputs.flake-compat.follows = "flake-compat";
};
inputs.flake-utils.follows = "cargo2nix/flake-utils";
- inputs.flake-compat.follows = "cargo2nix/flake-compat";
outputs = { self, nixpkgs, cargo2nix, flake-utils, ... }:
let
git_version = self.lastModifiedDate;
compile = import ./nix/compile.nix;
- in flake-utils.lib.eachDefaultSystem (system:
+ in
+ flake-utils.lib.eachDefaultSystem (system:
let pkgs = nixpkgs.legacyPackages.${system};
in {
packages = {