Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
68 lines
1.5 KiB
Nix
68 lines
1.5 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
qt5,
|
|
git,
|
|
ffmpeg_6,
|
|
nix-update-script,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "pencil2d";
|
|
version = "0.7.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "pencil2d";
|
|
repo = "pencil";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-l+iW0k3WdNXDwXtt958JJWSe3zNhQVul4FUcPPMrVxE=";
|
|
leaveDotGit = true;
|
|
postFetch = ''
|
|
# Obtain the last commit ID and its timestamp, then zap .git for reproducibility
|
|
cd $out
|
|
git rev-parse HEAD > $out/COMMIT
|
|
# 0000-00-00T00:00:00Z
|
|
date -u -d "@$(git log -1 --pretty=%ct)" "+%Y-%m-%d_%H:%M:%S" > $out/SOURCE_TIMESTAMP_EPOCH
|
|
find "$out" -name .git -print0 | xargs -0 rm -rf
|
|
'';
|
|
};
|
|
|
|
patches = [ ./git-inherit.patch ];
|
|
|
|
nativeBuildInputs = with qt5; [
|
|
qmake
|
|
wrapQtAppsHook
|
|
qttools
|
|
git
|
|
];
|
|
|
|
qmakeFlags = [
|
|
"pencil2d.pro"
|
|
"CONFIG+=release"
|
|
"CONFIG+=PENCIL2D_RELEASE"
|
|
"CONFIG+=GIT"
|
|
"VERSION=${finalAttrs.version}"
|
|
];
|
|
|
|
passthru.updateScript = nix-update-script { };
|
|
|
|
buildInputs = with qt5; [
|
|
qtbase
|
|
qtmultimedia
|
|
qtsvg
|
|
qtwayland
|
|
ffmpeg_6
|
|
];
|
|
|
|
meta = {
|
|
description = "Easy, intuitive tool to make 2D hand-drawn animations";
|
|
homepage = "https://www.pencil2d.org/";
|
|
downloadPage = "https://github.com/pencil2d/pencil";
|
|
license = lib.licenses.gpl2;
|
|
maintainers = with lib.maintainers; [ agvantibo ];
|
|
platforms = lib.platforms.linux;
|
|
mainProgram = "pencil2d";
|
|
};
|
|
})
|