Skip to content
This repository was archived by the owner on Dec 2, 2025. It is now read-only.

Commit ed15209

Browse files
committed
follow flake-compat input for deduplication
1 parent 3245ddd commit ed15209

File tree

3 files changed

+42
-10
lines changed

3 files changed

+42
-10
lines changed

default.nix

Lines changed: 19 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,19 @@
1-
(import (
2-
fetchTarball {
3-
url = "https://github.com/edolstra/flake-compat/archive/12c64ca55c1014cdc1b16ed5a804aa8576601ff2.tar.gz";
4-
sha256 = "0jm6nzb83wa6ai17ly9fzpqc40wg1viib8klq8lby54agpl213w5";
5-
}
6-
) {
7-
src = ./.;
8-
}).defaultNix
1+
(
2+
import
3+
(
4+
let
5+
lock = builtins.fromJSON (builtins.readFile ./flake.lock);
6+
nodeName = lock.nodes.root.inputs.flake-compat;
7+
in
8+
fetchTarball {
9+
url =
10+
lock.nodes.${nodeName}.locked.url
11+
or "https://github.com/edolstra/flake-compat/archive/${
12+
lock.nodes.${nodeName}.locked.rev
13+
}.tar.gz";
14+
sha256 = lock.nodes.${nodeName}.locked.narHash;
15+
}
16+
)
17+
{src = ./.;}
18+
)
19+
.defaultNix

flake.lock

Lines changed: 17 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,13 @@
44
inputs = {
55
# Pinned to align the version of VS Codium with Cursor's build.
66
nixpkgs.url = "github:NixOS/nixpkgs/212defe037698e18fc9521dfe451779a8979844c";
7+
flake-compat = {
8+
url = "github:edolstra/flake-compat";
9+
flake = false;
10+
};
711
};
812

9-
outputs = { self, nixpkgs }:
13+
outputs = { self, nixpkgs, ...}:
1014
let
1115
supportedSystems = [ "aarch64-linux" "armv7l-linux" "x86_64-linux" ];
1216
forAllSystems = nixpkgs.lib.genAttrs supportedSystems;
@@ -105,7 +109,7 @@
105109
cp ${cursorSrc}/cursor.png $out/cursor.png
106110
cp ${cursorSrc}/cursor.desktop $out/cursor.desktop
107111
cp -R ${cursorSrc}/resources/todesktop* $out/resources/
108-
112+
109113
# This is excluded intentionally. It causes an error in console,
110114
# but there's some token we must be missing?
111115
# cp ${cursorSrc}/resources/app-update.yml $out/resources/

0 commit comments

Comments
 (0)