stylix: update and simplify flake-compat instructions (#816)

Link: https://github.com/danth/stylix/pull/816

Reviewed-by: Daniel Thwaites <danth@danth.me>
This commit is contained in:
NAHO 2025-02-03 20:40:26 +01:00 committed by GitHub
parent bae5cbb8fb
commit d513f59da5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 7 deletions

View file

@ -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

View file

@ -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";