mirror of
https://github.com/codedownio/sandwich.git
synced 2024-08-16 15:20:26 +03:00
34 lines
1.0 KiB
Nix
34 lines
1.0 KiB
Nix
{
|
|
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
|
|
'';
|
|
};
|
|
|
|
devShells.default = pkgs.mkShell {
|
|
buildInputs = [ pkgs.htop ];
|
|
};
|
|
});
|
|
}
|