Fix flake overlay now?
This commit is contained in:
parent
b438fcf635
commit
3b33c60e64
1 changed files with 23 additions and 16 deletions
39
flake.nix
39
flake.nix
|
@ -7,27 +7,34 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = { self, nixpkgs, utils, naersk }:
|
outputs = { self, nixpkgs, utils, naersk }:
|
||||||
|
let
|
||||||
|
pkgs = import nixpkgs { system = "x86_64-linux"; overlays = [ naersk.overlay ]; };
|
||||||
|
# naersk-lib = builtins.trace naersk nixpkgs.legacyPackages.x86_64-linux.callPackage naersk { };
|
||||||
|
naersk-lib = pkgs.naersk;
|
||||||
|
in
|
||||||
rec {
|
rec {
|
||||||
overlay = final: prev: {
|
overlay = nixpkgs.lib.composeManyExtensions [
|
||||||
ha-now-playing = final.callPackage ./.;
|
(final: prev: {
|
||||||
};
|
ha-now-playing = naersk-lib.buildPackage
|
||||||
|
{
|
||||||
|
pname = "ha-now-playing";
|
||||||
|
root = ./.;
|
||||||
|
|
||||||
|
buildInputs = [
|
||||||
|
prev.openssl
|
||||||
|
];
|
||||||
|
nativeBuildInputs = [
|
||||||
|
prev.pkg-config
|
||||||
|
];
|
||||||
|
};
|
||||||
|
})
|
||||||
|
];
|
||||||
} // utils.lib.eachDefaultSystem (system:
|
} // utils.lib.eachDefaultSystem (system:
|
||||||
let
|
let
|
||||||
pkgs = import nixpkgs { inherit system; };
|
pkgs = import nixpkgs { inherit system; overlays = [ self.overlay ]; };
|
||||||
naersk-lib = pkgs.callPackage naersk { };
|
|
||||||
in
|
in
|
||||||
rec {
|
rec {
|
||||||
packages.ha-now-playing = naersk-lib.buildPackage {
|
packages.ha-now-playing = pkgs.ha-now-playing;
|
||||||
pname = "ha-now-playing";
|
|
||||||
root = ./.;
|
|
||||||
|
|
||||||
buildInputs = with pkgs;[
|
|
||||||
openssl
|
|
||||||
];
|
|
||||||
nativeBuildInputs = with pkgs; [
|
|
||||||
pkg-config
|
|
||||||
];
|
|
||||||
};
|
|
||||||
defaultPackage = packages.ha-now-playing;
|
defaultPackage = packages.ha-now-playing;
|
||||||
|
|
||||||
apps.ha-now-playing = utils.lib.mkApp {
|
apps.ha-now-playing = utils.lib.mkApp {
|
||||||
|
|
Loading…
Reference in a new issue