mirror of
https://github.com/codedownio/sandwich.git
synced 2024-08-16 15:20:26 +03:00
30 lines
925 B
Nix
30 lines
925 B
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
|
||
|
'';
|
||
|
};
|
||
|
});
|
||
|
}
|