Misc: Enable nix flakes

This commit is contained in:
2021-11-01 22:12:21 +01:00
parent 8c1eefc62c
commit 09d385806a
5 changed files with 31 additions and 25 deletions

View File

@@ -1,14 +1,16 @@
{ stdenv, lib }:
{ stdenv, lib, fetchFromGitHub }:
stdenv.mkDerivation rec {
pname = "Anime4k";
version = "4.0.0-RC";
version = "4.0.1";
src = builtins.fetchGit {
url = "https://github.com/bloc97/Anime4K.git";
ref = "cb56502ed429a5a3e48ed62c5245d6445a209c7c";
src = fetchFromGitHub {
owner = "bloc97";
repo = "Anime4k";
rev = "v${version}";
sha256 = "1gc1ka9i7xzxq58175q5svhvp8vr27hy477r4z4nkhp9q1cqj19r";
};
installPhase = ''
find ./glsl/ -type f -iname '*.glsl' -exec install -Dm 644 {} -t $out/usr/share/shaders/ \;
'';