Implement new flake reference system

This commit is contained in:
Luc Perkins 2022-07-31 12:57:49 +02:00
parent 3e0478c9c4
commit 5f7ae4d7f1
No known key found for this signature in database
GPG key ID: 4F102D0C16E232F2
27 changed files with 328 additions and 81 deletions

22
gleam/flake.lock generated
View file

@ -1,5 +1,24 @@
{
"nodes": {
"dev": {
"inputs": {
"flake-utils": "flake-utils",
"nixpkgs": "nixpkgs"
},
"locked": {
"lastModified": 1659264500,
"narHash": "sha256-N87HcKMmIW0Gear0aGulCfaY1DSabSSv/FBH5qoVbDg=",
"owner": "the-nix-way",
"repo": "dev-templates",
"rev": "3e0478c9c4a1f32730adf545fd1a2d7099bf6842",
"type": "github"
},
"original": {
"owner": "the-nix-way",
"repo": "dev-templates",
"type": "github"
}
},
"flake-utils": {
"locked": {
"lastModified": 1656928814,
@ -32,8 +51,7 @@
},
"root": {
"inputs": {
"flake-utils": "flake-utils",
"nixpkgs": "nixpkgs"
"dev": "dev"
}
}
},

View file

@ -2,12 +2,13 @@
description = "A Nix-flake-based Gleam development environment";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs";
flake-utils.url = "github:numtide/flake-utils";
dev.url = "github:the-nix-way/dev-templates";
};
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (system:
outputs = { self, dev }:
let
inherit (dev.lib) flake-utils nixpkgs;
in flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs { inherit system; };
gleamPkg = pkgs.gleam;