Skip to content

Instantly share code, notes, and snippets.

@r17x
Last active June 19, 2022 17:47
Show Gist options
  • Save r17x/e377546583de268213fa687c7bc9a6da to your computer and use it in GitHub Desktop.
Save r17x/e377546583de268213fa687c7bc9a6da to your computer and use it in GitHub Desktop.
per project flakes.
use flake
{
description = "description";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs";
utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, utils, ... }:
utils.lib.eachDefaultSystem (system:
let
inherit (lib) attrValues;
pkgs = nixpkgs.legacyPackages.${system};
lib = nixpkgs.lib;
in
rec {
devShell = with pkgs; mkShell {
buildInputs = [
nodejs-14_x
nodePackages.yarn
postgresql
];
};
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment