Skip to content

Commit

Permalink
fix: Add flake-compat correctly.
Browse files Browse the repository at this point in the history
  • Loading branch information
drupol committed Feb 6, 2022
1 parent cf8a0a5 commit 0b7c06d
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 9 deletions.
22 changes: 13 additions & 9 deletions default.nix
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
(import (
let
lock = builtins.fromJSON (builtins.readFile ./flake.lock);
in fetchTarball {
url = "https://github.com/edolstra/flake-compat/archive/${lock.nodes.flake-compat.locked.rev}.tar.gz";
sha256 = lock.nodes.flake-compat.locked.narHash; }
) {
src = ./.;
}).defaultNix
(import
(
let
lock = builtins.fromJSON (builtins.readFile ./flake.lock);
in
fetchTarball {
url = "https://github.com/edolstra/flake-compat/archive/${lock.nodes.flake-compat.locked.rev}.tar.gz";
sha256 = lock.nodes.flake-compat.locked.narHash;
}
)
{
src = ./.;
}).defaultNix
4 changes: 4 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
phps.url = "github:fossar/nix-phps";
flake-compat = {
url = github:edolstra/flake-compat;
flake = false;
};
};

outputs = { self, flake-utils, nixpkgs, phps }:
Expand Down
13 changes: 13 additions & 0 deletions shell.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
(import
(
let
lock = builtins.fromJSON (builtins.readFile ./flake.lock);
in
fetchTarball {
url = "https://github.com/edolstra/flake-compat/archive/${lock.nodes.flake-compat.locked.rev}.tar.gz";
sha256 = lock.nodes.flake-compat.locked.narHash;
}
)
{
src = ./.;
}).shellNix

0 comments on commit 0b7c06d

Please sign in to comment.