mirror of
https://github.com/Mic92/nix-update.git
synced 2024-09-17 13:27:27 +03:00
flake: use self as src
This commit is contained in:
parent
65b6abb927
commit
fb4ec8bce0
@ -1,10 +1,12 @@
|
||||
{ pkgs ? import <nixpkgs> {} }:
|
||||
{ pkgs ? import <nixpkgs> {},
|
||||
src ? ./.
|
||||
}:
|
||||
|
||||
|
||||
with pkgs;
|
||||
python3.pkgs.buildPythonApplication rec {
|
||||
name = "nix-update";
|
||||
src = ./.;
|
||||
inherit src;
|
||||
buildInputs = [ makeWrapper ];
|
||||
checkInputs = [
|
||||
python3.pkgs.pytest
|
||||
|
@ -5,7 +5,9 @@
|
||||
|
||||
outputs = { self, nixpkgs, flake-utils }:
|
||||
flake-utils.lib.eachSystem flake-utils.lib.allSystems (system: {
|
||||
packages.nix-update = nixpkgs.legacyPackages.${system}.callPackage ./. {};
|
||||
packages.nix-update = nixpkgs.legacyPackages.${system}.callPackage self {
|
||||
src = self;
|
||||
};
|
||||
defaultPackage = self.packages.${system}.nix-update;
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user