update flake

This commit is contained in:
Denis Lehmann 2021-04-18 12:14:34 +02:00
parent 71daf5bc7e
commit 73c624fee8
2 changed files with 10 additions and 14 deletions

6
flake.lock generated
View file

@ -17,11 +17,11 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1618650925, "lastModified": 1618734763,
"narHash": "sha256-i9qErG+4n20I4vS1UYC4J+85kJxHvkd6OpyMIa2kKP8=", "narHash": "sha256-jxyDdEBt59vqp5t5Ald+i9zgmjf3r+mPYgT4gmEXJR4=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "e1e163ee0987e47ab90d5b2020d871a00b1d186f", "rev": "c6df94ce561456492babc7628042fdc1c5fa0d5a",
"type": "github" "type": "github"
}, },
"original": { "original": {

View file

@ -20,12 +20,6 @@
]; ];
}); });
dependencies = with pkgs; [
jq
mpv
youtube-dl
];
in in
{ {
@ -38,13 +32,11 @@
name = "tyt"; name = "tyt";
src = self; src = self;
buildInputs = dependencies;
patchPhase = with pkgs; '' patchPhase = with pkgs; ''
substituteInPlace tyt \ substituteInPlace tyt \
--replace jq ${jq}/bin/jq \ --replace jq ${pkgs.jq}/bin/jq \
--replace mpv ${mpv}/bin/mpv \ --replace mpv ${mpv}/bin/mpv \
--replace youtube-dl ${youtube-dl}/bin/youtube-dl --replace youtube-dl ${pkgs.youtube-dl}/bin/youtube-dl
''; '';
installPhase = '' installPhase = ''
@ -57,7 +49,11 @@
# Development shell # Development shell
devShell = pkgs.mkShell { devShell = pkgs.mkShell {
buildInputs = dependencies; buildInputs = [
pkgs.jq
mpv
pkgs.youtube-dl
];
}; };
} }