forked from edmundmiller/guix
-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
31 lines (25 loc) · 985 Bytes
/
flake.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
{
description = "A package and module for using GNU Guix on Nix(OS)";
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
outputs = { self, nixpkgs }:
let
forAllSystems =
nixpkgs.lib.genAttrs [ "x86_64-linux" "i686-linux" "aarch64-linux" ];
in
{
overlay = final: prev:
let guilePackages = prev.callPackages ./guile { };
in rec {
guix = prev.callPackage ./package { inherit guilePackages; };
inherit (guilePackages)
guile-gnutls guile-gcrypt guile-git guile-json guile-sqlite3
guile-ssh guile-zstd guile-avahi guile-semver guile-lib;
scheme-bytestructures = guilePackages.bytestructures;
};
packages = forAllSystems (system:
let pkgs = nixpkgs.legacyPackages.${system};
in self.overlay pkgs pkgs);
defaultPackage = forAllSystems (system: self.packages.${system}.guix);
nixosModules = { guix = import ./module; };
};
}