backintime-common: modernize (#531716)
This commit is contained in:
@@ -16,6 +16,7 @@
|
||||
gnugrep,
|
||||
man,
|
||||
asciidoctor,
|
||||
bashNonInteractive,
|
||||
}:
|
||||
|
||||
let
|
||||
@@ -47,15 +48,25 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
hash = "sha256-/33Lx62S/9RcqrfJumE6/o3KnAObBa3DcmuGkcOXIQE=";
|
||||
};
|
||||
|
||||
__structuredAttrs = true;
|
||||
strictDeps = true;
|
||||
enableParallelBuilding = true;
|
||||
outputs = [
|
||||
"out"
|
||||
"man"
|
||||
"doc"
|
||||
];
|
||||
|
||||
nativeBuildInputs = [
|
||||
makeWrapper
|
||||
gettext
|
||||
asciidoctor
|
||||
man
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
python'
|
||||
man
|
||||
asciidoctor
|
||||
bashNonInteractive
|
||||
];
|
||||
|
||||
installFlags = [ "DEST=$(out)" ];
|
||||
@@ -83,7 +94,7 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
--replace-fail "'fusermount'" "'${lib.getExe' fuse3 "fusermount3"}'"
|
||||
|
||||
substituteInPlace "bitlicense.py" \
|
||||
--replace-fail "/usr/share/doc" "$out/share/doc" \
|
||||
--replace-fail "/usr/share/doc" "$doc/share/doc" \
|
||||
'';
|
||||
|
||||
dontAddPrefix = true;
|
||||
|
||||
@@ -49,7 +49,6 @@ stdenv.mkDerivation {
|
||||
version
|
||||
src
|
||||
installFlags
|
||||
meta
|
||||
dontAddPrefix
|
||||
;
|
||||
|
||||
@@ -105,4 +104,15 @@ stdenv.mkDerivation {
|
||||
wrapProgram "$out/bin/backintime-qt_polkit" \
|
||||
--prefix PATH : "${lib.getBin polkit}/bin:$PATH"
|
||||
'';
|
||||
|
||||
meta = {
|
||||
inherit (backintime-common.meta)
|
||||
homepage
|
||||
description
|
||||
license
|
||||
maintainers
|
||||
platforms
|
||||
longDescription
|
||||
;
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user