Remove flake parts and update lock file
This commit is contained in:
parent
d49a398b35
commit
b71e7d35d7
42
flake.lock
42
flake.lock
|
@ -1,29 +1,12 @@
|
||||||
{
|
{
|
||||||
"nodes": {
|
"nodes": {
|
||||||
"flake-parts": {
|
|
||||||
"inputs": {
|
|
||||||
"nixpkgs-lib": "nixpkgs-lib"
|
|
||||||
},
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1709336216,
|
|
||||||
"narHash": "sha256-Dt/wOWeW6Sqm11Yh+2+t0dfEWxoMxGBvv3JpIocFl9E=",
|
|
||||||
"owner": "hercules-ci",
|
|
||||||
"repo": "flake-parts",
|
|
||||||
"rev": "f7b3c975cf067e56e7cda6cb098ebe3fb4d74ca2",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"id": "flake-parts",
|
|
||||||
"type": "indirect"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1710806803,
|
"lastModified": 1711523803,
|
||||||
"narHash": "sha256-qrxvLS888pNJFwJdK+hf1wpRCSQcqA6W5+Ox202NDa0=",
|
"narHash": "sha256-UKcYiHWHQynzj6CN/vTcix4yd1eCu1uFdsuarupdCQQ=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "b06025f1533a1e07b6db3e75151caa155d1c7eb3",
|
"rev": "2726f127c15a4cc9810843b96cad73c7eb39e443",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -49,27 +32,8 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"nixpkgs-lib": {
|
|
||||||
"locked": {
|
|
||||||
"dir": "lib",
|
|
||||||
"lastModified": 1709237383,
|
|
||||||
"narHash": "sha256-cy6ArO4k5qTx+l5o+0mL9f5fa86tYUX3ozE1S+Txlds=",
|
|
||||||
"owner": "NixOS",
|
|
||||||
"repo": "nixpkgs",
|
|
||||||
"rev": "1536926ef5621b09bba54035ae2bb6d806d72ac8",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"dir": "lib",
|
|
||||||
"owner": "NixOS",
|
|
||||||
"ref": "nixos-unstable",
|
|
||||||
"repo": "nixpkgs",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"root": {
|
"root": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"flake-parts": "flake-parts",
|
|
||||||
"nixpkgs": "nixpkgs",
|
"nixpkgs": "nixpkgs",
|
||||||
"nixpkgs-2305": "nixpkgs-2305"
|
"nixpkgs-2305": "nixpkgs-2305"
|
||||||
}
|
}
|
||||||
|
|
29
flake.nix
29
flake.nix
|
@ -4,23 +4,24 @@
|
||||||
nixpkgs-2305.url = "github:NixOS/nixpkgs/nixos-23.05";
|
nixpkgs-2305.url = "github:NixOS/nixpkgs/nixos-23.05";
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = inputs@{ self, flake-parts, ... }:
|
outputs = { nixpkgs, ... }@inputs:
|
||||||
flake-parts.lib.mkFlake { inherit inputs; } {
|
let
|
||||||
flake = { lib = import ./lib { inherit inputs; }; };
|
system = "x86_64-linux";
|
||||||
|
pkgs = nixpkgs.legacyPackages.${system};
|
||||||
|
|
||||||
systems = [ "x86_64-linux" ];
|
lib = import ./lib { inherit inputs; };
|
||||||
|
|
||||||
perSystem = { pkgs, self', system, ... }:
|
inherit (lib) mkNeovim mkVimPlugin;
|
||||||
let
|
inherit (pkgs) mkShell;
|
||||||
default = self.lib.mkVimPlugin { inherit system; };
|
|
||||||
neovim = self.lib.mkNeovim { inherit system; };
|
|
||||||
in {
|
|
||||||
devShells.default =
|
|
||||||
pkgs.mkShell { nativeBuildInputs = [ pkgs.just pkgs.nixfmt ]; };
|
|
||||||
|
|
||||||
packages = { inherit default neovim; };
|
default = mkVimPlugin { inherit system; };
|
||||||
|
neovim = mkNeovim { inherit system; };
|
||||||
|
in {
|
||||||
|
devShells.${system}.default =
|
||||||
|
mkShell { buildInputs = with pkgs; [ just ]; };
|
||||||
|
|
||||||
formatter = pkgs.nixfmt;
|
formatter.${system} = pkgs.nixfmt;
|
||||||
};
|
|
||||||
|
packages.${system} = { inherit default neovim; };
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue