chaoszone.cz/flake.nix

29 lines
766 B
Nix
Raw Normal View History

2023-11-25 04:27:03 +00:00
{
description = "Source files for my blog";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = nixpkgs.legacyPackages.${system};
haskellPackages = pkgs.haskellPackages;
jailbreakUnbreak = pkg:
pkgs.haskell.lib.doJailbreak (pkg.overrideAttrs (_: { meta = { }; }));
packageName = "chaoszone";
in rec {
2023-12-16 05:30:30 +00:00
packages.${packageName} = import ./default.nix {inherit pkgs self;};
2023-11-25 04:27:03 +00:00
defaultPackage = self.packages.${system}.${packageName};
2023-12-16 05:30:30 +00:00
devShell = import ./shell.nix {inherit pkgs; chaoszone = defaultPackage;};
2023-11-25 04:27:03 +00:00
});
}