Skip to content

Commit

Permalink
Add flake.
Browse files Browse the repository at this point in the history
  • Loading branch information
zopieux committed Nov 4, 2023
1 parent ee46004 commit 947e155
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 0 deletions.
1 change: 1 addition & 0 deletions .envrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
use flake
27 changes: 27 additions & 0 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 19 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
};

outputs = { self, nixpkgs }:
let pkgs = nixpkgs.legacyPackages."x86_64-linux";
in {
packages."x86_64-linux".default = pkgs.mkYarnPackage {
pname = "mugctl";
src = ./.;
packageJSON = ./package.json;
yarnLock = ./yarn.lock;
};
packages."x86_64-linux".devShells.default = with pkgs; mkShell {
nativeBuildInputs = [ nodejs yarn ];
};
};
}

0 comments on commit 947e155

Please sign in to comment.