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

Commit aa71740

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

File tree

3 files changed

+32
-7
lines changed

3 files changed

+32
-7
lines changed

default.nix

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