4-variable-simplifier/flake.nix
2026-04-25 16:00:10 -04:00

45 lines
1.1 KiB
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
readline.dev
python3
];
shellHook = ''
export PATH="$PWD:$PATH"
'';
};
packages.default = pkgs.stdenv.mkDerivation rec {
pname = "4-variable-simplifier";
version = "1.0";
src = ./.;
nativeBuildInputs = with pkgs; [ gcc gnumake ];
buildInputs = with pkgs; [ readline.dev ];
};
});
}