Skip to content

Commit 03dff50

Browse files
fix(nix): correct build failure
1 parent 4010972 commit 03dff50

3 files changed

Lines changed: 6 additions & 5 deletions

File tree

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
/.idea
22
/.vscode
33
/result
4-

flake.nix

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,13 @@
3131
let
3232
pkgs = import nixpkgs { inherit system; };
3333
in
34-
{
34+
rec {
3535
formatter = pkgs.nixfmt-rfc-style;
3636

3737
packages.winapps = pkgs.callPackage ./packages/winapps { inherit nix-filter; };
38-
packages.winapps-launcher = pkgs.callPackage ./packages/winapps-launcher { };
38+
packages.winapps-launcher = pkgs.callPackage ./packages/winapps-launcher {
39+
inherit (packages) winapps;
40+
};
3941
}
4042
);
4143
}

packages/winapps-launcher/default.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
fetchFromGitHub,
55
makeWrapper,
66
makeDesktopItem,
7-
callPackage,
87
yad,
8+
winapps ? throw "Pass in the winapps package",
99
...
1010
}:
1111
let
@@ -26,7 +26,7 @@ stdenv.mkDerivation rec {
2626
nativeBuildInputs = [ makeWrapper ];
2727
buildInputs = [
2828
yad
29-
(callPackage ../winapps { })
29+
winapps
3030
];
3131

3232
patches = [ ./WinApps-Launcher.patch ];

0 commit comments

Comments
 (0)