mirror of
https://github.com/rzuasti/oott.git
synced 2026-07-08 19:21:54 +02:00
grouped nix config in a folder
This commit is contained in:
@@ -25,20 +25,17 @@
|
||||
inherit system;
|
||||
overlays = overlayList;
|
||||
});
|
||||
|
||||
version = "0.0.1";
|
||||
pname = "oott";
|
||||
in rec {
|
||||
# A Nixpkgs overlay that provides a 'oott' package.
|
||||
overlays.default = final: prev: {oott = final.callPackage ./package.nix {};};
|
||||
overlays.default = final: prev: {oott = final.callPackage ./nix/package.nix {};};
|
||||
|
||||
# Package definition
|
||||
packages = forEachSystem (system: {
|
||||
${pname} = pkgsBySystem.${system}.${pname};
|
||||
default = pkgsBySystem.${system}.${pname};
|
||||
oott = pkgsBySystem.${system}.oott;
|
||||
default = pkgsBySystem.${system}.oott;
|
||||
});
|
||||
|
||||
# Modules definition
|
||||
nixosModules = import ./modules.nix {overlays = overlayList;};
|
||||
nixosModules = import ./nix/modules {overlays = overlayList;};
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,12 +1,7 @@
|
||||
{
|
||||
pkgs,
|
||||
buildRustPackage,
|
||||
pname,
|
||||
version,
|
||||
}:
|
||||
buildRustPackage rec {
|
||||
inherit pname;
|
||||
inherit version;
|
||||
{pkgs}:
|
||||
pkgs.rustPlatform.buildRustPackage rec {
|
||||
pname = "oott";
|
||||
version = "0.0.1";
|
||||
src = ./.;
|
||||
cargoLock = {
|
||||
lockFile = ./Cargo.lock;
|
||||
Reference in New Issue
Block a user