4-variable-simplifier/flake.nix

42 lines
1,007 B
Nix

# vim: set sw=2 ts=2 et: #
{
description = "An example project using flutter";
inputs.nixpkgs = { url = "github:NixOS/nixpkgs"; };
inputs.flake-utils.url = "github:numtide/flake-utils";
inputs.flake-compat = {
url = "github:edolstra/flake-compat";
flake = false;
};
outputs = { self, nixpkgs, flake-utils, ... }:
flake-utils.lib.eachDefaultSystem (system:
let pkgs = import nixpkgs {
inherit system;
config.allowUnfree = true;
};
in {
devShells.default =
pkgs.mkShell {
buildInputs = with pkgs; [
gcc
gnumake
readline.dev
python3
];
};
packages.default = pkgs.stdenv.mkDerivation rec {
pname = "4-variable-simplifier";
version = "1.0";
src = ./.;
nativeBuildInputs = with pkgs; [ gcc gnumake ];
buildInputs = with pkgs; [ readline.dev ];
};
});
}