From a5bd74cc2aa3564dc2714b538107bbd0fb00ec1b Mon Sep 17 00:00:00 2001 From: Yusuf Bera Ertan Date: Wed, 12 Apr 2023 07:21:16 +0300 Subject: [PATCH] chore: add envrc and gitignore, make flake work --- .envrc | 1 + .gitignore | 1 + flake.lock | 97 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ flake.nix | 3 +- 4 files changed, 101 insertions(+), 1 deletion(-) create mode 100644 .envrc create mode 100644 .gitignore create mode 100644 flake.lock diff --git a/.envrc b/.envrc new file mode 100644 index 0000000..3550a30 --- /dev/null +++ b/.envrc @@ -0,0 +1 @@ +use flake diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..7ad6275 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/.direnv diff --git a/flake.lock b/flake.lock new file mode 100644 index 0000000..379ec70 --- /dev/null +++ b/flake.lock @@ -0,0 +1,97 @@ +{ + "nodes": { + "naked-shell": { + "flake": false, + "locked": { + "lastModified": 1676572903, + "narHash": "sha256-oQoDHHUTxNVSURfkFcYLuAK+btjs30T4rbEUtCUyKy8=", + "owner": "yusdacra", + "repo": "mk-naked-shell", + "rev": "aeca9f8aa592f5e8f71f407d081cb26fd30c5a57", + "type": "github" + }, + "original": { + "owner": "yusdacra", + "repo": "mk-naked-shell", + "type": "github" + } + }, + "nixpkgs": { + "locked": { + "lastModified": 1681126633, + "narHash": "sha256-evQ3Ct/yJDSHej16Hiq+JfxRjgm9FXu/2LBxsyorGdE=", + "owner": "nixos", + "repo": "nixpkgs", + "rev": "db24d86dd8a4769c50d6b7295e81aa280cd93f35", + "type": "github" + }, + "original": { + "owner": "nixos", + "ref": "nixos-unstable", + "repo": "nixpkgs", + "type": "github" + } + }, + "nixpkgs-lib": { + "locked": { + "dir": "lib", + "lastModified": 1680213900, + "narHash": "sha256-cIDr5WZIj3EkKyCgj/6j3HBH4Jj1W296z7HTcWj1aMA=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "e3652e0735fbec227f342712f180f4f21f0594f2", + "type": "github" + }, + "original": { + "dir": "lib", + "owner": "NixOS", + "ref": "nixos-unstable", + "repo": "nixpkgs", + "type": "github" + } + }, + "parts": { + "inputs": { + "nixpkgs-lib": "nixpkgs-lib" + }, + "locked": { + "lastModified": 1680392223, + "narHash": "sha256-n3g7QFr85lDODKt250rkZj2IFS3i4/8HBU2yKHO3tqw=", + "owner": "hercules-ci", + "repo": "flake-parts", + "rev": "dcc36e45d054d7bb554c9cdab69093debd91a0b5", + "type": "github" + }, + "original": { + "owner": "hercules-ci", + "repo": "flake-parts", + "type": "github" + } + }, + "root": { + "inputs": { + "naked-shell": "naked-shell", + "nixpkgs": "nixpkgs", + "parts": "parts", + "systems": "systems" + } + }, + "systems": { + "locked": { + "lastModified": 1680978846, + "narHash": "sha256-Gtqg8b/v49BFDpDetjclCYXm8mAnTrUzR0JnE2nv5aw=", + "owner": "nix-systems", + "repo": "x86_64-linux", + "rev": "2ecfcac5e15790ba6ce360ceccddb15ad16d08a8", + "type": "github" + }, + "original": { + "owner": "nix-systems", + "repo": "x86_64-linux", + "type": "github" + } + } + }, + "root": "root", + "version": 7 +} diff --git a/flake.nix b/flake.nix index a4a8105..b348adf 100644 --- a/flake.nix +++ b/flake.nix @@ -5,6 +5,7 @@ inputs.nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; inputs.systems.url = "github:nix-systems/x86_64-linux"; inputs.naked-shell.url = "github:yusdacra/mk-naked-shell"; + inputs.naked-shell.flake = false; outputs = inp: inp.parts.lib.mkFlake {inputs = inp;} { @@ -12,7 +13,7 @@ perSystem = {pkgs, ...}: let mkNakedShell = pkgs.callPackage inp.naked-shell {}; in { - devShell = mkNakedShell { + devShells.default = mkNakedShell { name = "musikspider-devshell"; packages = with pkgs; [deno]; };