2022-08-08 21:10:35 +03:00
|
|
|
{ stdenvNoCC, fetchzip, pins }:
|
|
|
|
|
|
|
|
let
|
|
|
|
inherit (pins) cinny;
|
|
|
|
repo = cinny.repository;
|
|
|
|
|
|
|
|
app = stdenvNoCC.mkDerivation rec {
|
2022-08-28 18:51:56 +03:00
|
|
|
pname = "cinny-bin";
|
2022-08-08 21:10:35 +03:00
|
|
|
version = builtins.substring 1 (-1) cinny.version;
|
|
|
|
|
|
|
|
src = fetchzip {
|
|
|
|
name = "cinny-tarball-${version}";
|
|
|
|
url = "https://github.com/${repo.owner}/${repo.repo}/releases/download/${cinny.version}/cinny-${cinny.version}.tar.gz";
|
2023-01-16 16:41:26 +02:00
|
|
|
sha256 = "sha256-CmjWlHkVUxFQXZ8kF3fW6XSbgb5b6mnsm0t+WGb3ZTM=";
|
2022-08-08 21:10:35 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
buildCommand = ''
|
|
|
|
mkdir -p $out/share/www/cinny
|
|
|
|
cp -r $src/* $out/share/www/cinny
|
|
|
|
'';
|
|
|
|
passthru.webroot = "${app}/share/www/cinny";
|
|
|
|
};
|
|
|
|
in app
|