nixpkgs/flake.nix

51 lines
1.2 KiB
Nix
Raw Normal View History

2019-02-11 12:27:17 +01:00
{
2019-08-30 11:48:43 +02:00
epoch = 201909;
2019-02-11 12:27:17 +01:00
description = "A collection of packages for the Nix package manager";
2019-08-30 11:48:43 +02:00
outputs = { self }:
2019-06-19 12:43:26 +02:00
let
pkgs = import ./. { system = "x86_64-linux"; };
jobs = import ./pkgs/top-level/release.nix {
2019-08-30 11:48:43 +02:00
nixpkgs = self;
2019-06-19 12:43:26 +02:00
};
lib = import ./lib;
2019-06-19 12:43:26 +02:00
in
2019-02-11 12:27:17 +01:00
{
lib = lib // {
nixosSystem = { modules, ... } @ args:
import ./nixos/lib/eval-config.nix (args // {
modules = modules ++
[ { system.nixos.versionSuffix =
".${lib.substring 0 8 self.lastModified}.${self.shortRev}";
system.nixos.revision = self.rev;
}
];
});
};
2019-02-11 12:27:17 +01:00
2019-06-19 12:43:26 +02:00
checks.tarball = jobs.tarball;
2019-05-29 21:21:56 +02:00
2019-02-11 12:27:17 +01:00
builders = {
inherit (pkgs) stdenv fetchurl;
};
2019-06-19 12:43:26 +02:00
htmlDocs = {
nixpkgsManual = jobs.manual;
nixosManual = (import ./nixos/release-small.nix {
2019-08-30 11:48:43 +02:00
nixpkgs = self;
2019-06-19 12:43:26 +02:00
}).nixos.manual.x86_64-linux;
};
2019-02-11 12:27:17 +01:00
packages = {
2019-05-29 21:11:22 +02:00
inherit (pkgs) hello nix fuse nlohmann_json boost firefox;
2019-02-11 12:27:17 +01:00
};
2019-05-29 21:11:22 +02:00
legacyPackages = pkgs;
2019-09-13 19:01:23 +02:00
nixosModules = {
notDetected = ./nixos/modules/installer/scan/not-detected.nix;
};
2019-02-11 12:27:17 +01:00
};
}