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": {
"locked": {
"lastModified": 1618650925,
"narHash": "sha256-i9qErG+4n20I4vS1UYC4J+85kJxHvkd6OpyMIa2kKP8=",
"lastModified": 1618734763,
"narHash": "sha256-jxyDdEBt59vqp5t5Ald+i9zgmjf3r+mPYgT4gmEXJR4=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "e1e163ee0987e47ab90d5b2020d871a00b1d186f",
"rev": "c6df94ce561456492babc7628042fdc1c5fa0d5a",
"type": "github"
},
"original": {

View file

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