2021-12-06 16:07:01 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
2022-02-10 20:34:41 +00:00
|
|
|
, unstableGitUpdater
|
2021-12-06 16:07:01 +00:00
|
|
|
, substituteAll
|
|
|
|
, file-roller
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "file-roller-contract";
|
2022-02-10 20:34:41 +00:00
|
|
|
version = "unstable-2021-02-22";
|
2021-12-06 16:07:01 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "elementary";
|
|
|
|
repo = pname;
|
|
|
|
rev = "cf001d84a7e2ddcfbee2cfdb19885798a869833e";
|
|
|
|
sha256 = "sha256-jnXq44NiQiSYsvaBF828TklLg9d6z6n+gCZKgbFiERI=";
|
|
|
|
};
|
|
|
|
|
|
|
|
patches = [
|
|
|
|
(substituteAll {
|
|
|
|
src = ./exec-path.patch;
|
|
|
|
file_roller = file-roller;
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
|
|
|
dontConfigure = true;
|
|
|
|
|
|
|
|
dontBuild = true;
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
|
|
|
|
mkdir -p $out/share/contractor
|
|
|
|
cp *.contract $out/share/contractor/
|
|
|
|
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
|
2022-02-10 20:34:41 +00:00
|
|
|
passthru = {
|
|
|
|
updateScript = unstableGitUpdater {
|
|
|
|
url = "https://github.com/elementary/file-roller-contract.git";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Contractor extension for File Roller";
|
|
|
|
homepage = "https://github.com/elementary/file-roller-contract";
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
maintainers = teams.pantheon.members;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|