Add direnv support

This commit is contained in:
Julian Mutter 2023-03-11 15:13:19 +01:00
parent 02c12576f7
commit 84dde05100
4 changed files with 16 additions and 13 deletions

1
.envrc Normal file
View File

@ -0,0 +1 @@
use flake

1
.gitignore vendored
View File

@ -6,3 +6,4 @@ tmp/
/transcoder/transcode.log
/.env
video_transcoder.service
/.direnv/

23
flake.lock generated
View File

@ -10,8 +10,9 @@
"type": "github"
},
"original": {
"id": "flake-utils",
"type": "indirect"
"owner": "numtide",
"repo": "flake-utils",
"type": "github"
}
},
"flake-utils_2": {
@ -36,16 +37,15 @@
"pypi-deps-db": "pypi-deps-db"
},
"locked": {
"lastModified": 1654084003,
"narHash": "sha256-j/XrVVistvM+Ua+0tNFvO5z83isL+LBgmBi9XppxuKA=",
"lastModified": 1678343959,
"narHash": "sha256-LGFLMTf9gEPYzLuny3idKQOGiZFVhmjR2VGvio4chMI=",
"owner": "DavHau",
"repo": "mach-nix",
"rev": "7e14360bde07dcae32e5e24f366c83272f52923f",
"rev": "f60b9833469adb18e57b4c9e8fc4804fce82e3da",
"type": "github"
},
"original": {
"id": "mach-nix",
"ref": "3.5.0",
"type": "indirect"
}
},
@ -66,16 +66,17 @@
},
"nixpkgs_2": {
"locked": {
"lastModified": 1678298120,
"narHash": "sha256-iaV5xqgn29xy765Js3EoZePQyZIlLZA3pTYtTnKkejg=",
"lastModified": 1678519861,
"narHash": "sha256-jo1swATOxWxZU5gnuOEnazr5680o97xlkL6qAHv6Hew=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "1e383aada51b416c6c27d4884d2e258df201bc11",
"rev": "20e0820a5ff2c3dc76114368a94c9a1c11bb6cdc",
"type": "github"
},
"original": {
"id": "nixpkgs",
"type": "indirect"
"owner": "NixOS",
"repo": "nixpkgs",
"type": "github"
}
},
"pypi-deps-db": {

View File

@ -3,9 +3,9 @@
inputs.nixpkgs.url = "github:NixOS/nixpkgs";
inputs.flake-utils.url = "github:numtide/flake-utils";
inputs.mach-nix.url = "github:mach-nix/3.5.0";
# inputs.mach-nix.url = "github:mach-nix/3.5.0";
outputs = { self, nixpkgs, flake-utils, mach-nix }:
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachSystem [ "x86_64-linux" ] (system:
let pkgs = nixpkgs.legacyPackages.${system};
in {