Skip to content

Commit

Permalink
stylix: update and simplify flake-compat instructions (#816)
Browse files Browse the repository at this point in the history
Link: #816

Reviewed-by: Daniel Thwaites <[email protected]>
  • Loading branch information
trueNAHO authored Feb 3, 2025
1 parent bae5cbb commit d513f59
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
5 changes: 3 additions & 2 deletions default.nix
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
(import (
let
inherit (lock.nodes.flake-compat.locked) narHash rev;
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;
url = "https://github.com/edolstra/flake-compat/archive/${rev}.tar.gz";
sha256 = narHash;
}
) { src = ./.; }).defaultNix
6 changes: 1 addition & 5 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,7 @@
};

base16.url = "github:SenchoPens/base16.nix";

flake-compat = {
flake = false;
url = "github:edolstra/flake-compat";
};
flake-compat.url = "github:edolstra/flake-compat";

flake-utils = {
inputs.systems.follows = "systems";
Expand Down

0 comments on commit d513f59

Please sign in to comment.