Skip to content

Commit

Permalink
Add flake-compat and default.nix
Browse files Browse the repository at this point in the history
  • Loading branch information
gradientvera committed May 17, 2024
1 parent 4060b6b commit 54cf41c
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 1 deletion.
9 changes: 9 additions & 0 deletions default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
(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
17 changes: 17 additions & 0 deletions flake.lock

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

7 changes: 6 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,13 @@
description = "Flake providing a package for the Space Station 14 Launcher.";

inputs.nixpkgs.url = "github:NixOS/nixpkgs/release-23.11";
inputs.flake-compat = {
url = "github:edolstra/flake-compat";
flake = false;
};

outputs = { self, nixpkgs }:

outputs = { self, nixpkgs, ... }:
let
forAllSystems = function:
nixpkgs.lib.genAttrs [ "x86_64-linux" ] # TODO: aarch64-linux support
Expand Down

0 comments on commit 54cf41c

Please sign in to comment.