2024-03-01 08:09:35 +03:00
|
|
|
{
|
|
|
|
description = "Sandwich";
|
|
|
|
|
|
|
|
inputs.gitignore = {
|
|
|
|
url = "github:hercules-ci/gitignore.nix";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
|
|
|
inputs.nixpkgs.url = "github:NixOS/nixpkgs/release-23.11";
|
|
|
|
inputs.nixpkgsMaster.url = "github:NixOS/nixpkgs/master";
|
|
|
|
inputs.flake-utils.url = "github:numtide/flake-utils";
|
|
|
|
|
|
|
|
outputs = { self, gitignore, nixpkgs, nixpkgsMaster, flake-utils }:
|
|
|
|
flake-utils.lib.eachSystem [ "x86_64-linux" ] (system:
|
|
|
|
let
|
|
|
|
pkgs = import nixpkgs { inherit system; };
|
|
|
|
pkgsMaster = import nixpkgsMaster { inherit system; };
|
|
|
|
in
|
|
|
|
{
|
|
|
|
packages = {
|
|
|
|
inherit (pkgsMaster) node2nix;
|
|
|
|
inherit (pkgsMaster.haskell.packages.ghc964) weeder;
|
|
|
|
|
|
|
|
test = pkgs.writeShellScriptBin "stack-test" ''
|
|
|
|
export NIX_PATH=nixpkgs=${pkgs.path}
|
|
|
|
${pkgs.stack}/bin/stack test
|
|
|
|
'';
|
|
|
|
};
|
2024-05-23 14:12:26 +03:00
|
|
|
|
|
|
|
devShells.default = pkgs.mkShell {
|
2024-05-24 10:06:36 +03:00
|
|
|
buildInputs = [ pkgs.htop ];
|
2024-05-23 14:12:26 +03:00
|
|
|
};
|
2024-03-01 08:09:35 +03:00
|
|
|
});
|
|
|
|
}
|