Skip to content

Commit

Permalink
feat: non-flake export using flake-compat
Browse files Browse the repository at this point in the history
  • Loading branch information
mightyiam committed Feb 20, 2024
1 parent 04bd390 commit 756dcef
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 0 deletions.
10 changes: 10 additions & 0 deletions default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
(import
(
let lock = builtins.fromJSON (builtins.readFile ./flake.lock); in
fetchTarball {
url = lock.nodes.flake-compat.locked.url or "https://github.com/edolstra/flake-compat/archive/${lock.nodes.flake-compat.locked.rev}.tar.gz";
sha256 = lock.nodes.flake-compat.locked.narHash;
}
)
{ src = ./.; }
).defaultNix
15 changes: 15 additions & 0 deletions flake.lock

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

2 changes: 2 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,14 @@
inputs.crane.url = "github:ipetkov/crane";
inputs.fenix.inputs.nixpkgs.follows = "nixpkgs";
inputs.fenix.url = "github:nix-community/fenix";
inputs.flake-compat.url = "https://flakehub.com/f/edolstra/flake-compat/1.tar.gz";
inputs.flake-utils.url = "github:numtide/flake-utils";

outputs = {
self,
crane,
fenix,
flake-compat,
flake-utils,
nixpkgs,
}: let
Expand Down

0 comments on commit 756dcef

Please sign in to comment.