diff options
author | Raghuram Subramani <raghus2247@gmail.com> | 2025-08-01 12:35:21 +0530 |
---|---|---|
committer | Raghuram Subramani <raghus2247@gmail.com> | 2025-08-01 12:35:21 +0530 |
commit | 99d9bd5f1c19c925a04016c27ab40a7695e876ee (patch) | |
tree | 113dd4e1354b0ac629d4725e027f07d4127a4e57 | |
parent | b196f95f9d6965fb5b5c27d1bd82858632adb15b (diff) |
flake: init
-rw-r--r-- | .envrc | 1 | ||||
-rw-r--r-- | .gitignore | 2 | ||||
-rw-r--r-- | flake.lock | 63 | ||||
-rw-r--r-- | flake.nix | 17 |
4 files changed, 83 insertions, 0 deletions
@@ -0,0 +1 @@ +use flake diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..5ce0a9e --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +.direnv/ +dist/ diff --git a/flake.lock b/flake.lock new file mode 100644 index 0000000..9d1d0ca --- /dev/null +++ b/flake.lock @@ -0,0 +1,63 @@ +{ + "nodes": { + "msgpkgs": { + "inputs": { + "nixpkgs": "nixpkgs" + }, + "locked": { + "lastModified": 1754031000, + "narHash": "sha256-wmjhqD2o1uAewmJ5Jqwor5ULVSeGKIo2qUFgljYF6wk=", + "ref": "refs/heads/main", + "rev": "ad9a7a0a2929ca5a7dcf417859c06b055a8bc5a2", + "revCount": 212, + "submodules": true, + "type": "git", + "url": "ssh://git@github.com/compromyse/msg.git" + }, + "original": { + "type": "git", + "url": "ssh://git@github.com/compromyse/msg.git" + } + }, + "nixpkgs": { + "locked": { + "lastModified": 1749794982, + "narHash": "sha256-Kh9K4taXbVuaLC0IL+9HcfvxsSUx8dPB5s5weJcc9pc=", + "owner": "nixos", + "repo": "nixpkgs", + "rev": "ee930f9755f58096ac6e8ca94a1887e0534e2d81", + "type": "github" + }, + "original": { + "owner": "nixos", + "ref": "nixos-unstable", + "repo": "nixpkgs", + "type": "github" + } + }, + "nixpkgs_2": { + "locked": { + "lastModified": 1753694789, + "narHash": "sha256-cKgvtz6fKuK1Xr5LQW/zOUiAC0oSQoA9nOISB0pJZqM=", + "owner": "nixos", + "repo": "nixpkgs", + "rev": "dc9637876d0dcc8c9e5e22986b857632effeb727", + "type": "github" + }, + "original": { + "owner": "nixos", + "ref": "nixos-unstable", + "repo": "nixpkgs", + "type": "github" + } + }, + "root": { + "inputs": { + "msgpkgs": "msgpkgs", + "nixpkgs": "nixpkgs_2" + } + } + }, + "root": "root", + "version": 7 +} diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..d5e563a --- /dev/null +++ b/flake.nix @@ -0,0 +1,17 @@ +{ + inputs = { + nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; + msgpkgs.url = "git+ssh://git@github.com/compromyse/msg.git"; + self.submodules = true; + }; + + outputs = { self, nixpkgs, msgpkgs, ... }: + let + pkgs = import nixpkgs { system = "x86_64-linux"; }; + msg = msgpkgs.packages.x86_64-linux.default; + in { + devShells.x86_64-linux.default = pkgs.mkShell { + buildInputs = [ msg ]; + }; + }; +} |