@ -18,12 +18,15 @@ in {
, configureFlags
# mostly for moving and deleting files from the build directory
# : lines
, postInstall
, postInstall ? " "
# : lines
, postFixup ? " "
# : list Maintainer
, maintainers ? [ ]
} :
# : attrs
, meta ? { }
, . . .
} @ args :
let
@ -50,16 +53,12 @@ let
" R E A D M E . * "
] ;
in stdenv . mkDerivation {
name = " ${ pname } - ${ version } " ;
in stdenv . mkDerivation ( {
src = fetchurl {
url = " h t t p s : / / s k a r n e t . o r g / s o f t w a r e / ${ pname } / ${ pname } - ${ version } . t a r . g z " ;
inherit sha256 ;
} ;
inherit outputs ;
dontDisableStatic = true ;
enableParallelBuilding = true ;
@ -84,13 +83,11 @@ in stdenv.mkDerivation {
noiseFiles = commonNoiseFiles ;
docFiles = commonMetaFiles ;
} } $ doc/share/doc / $ { pname }
$ { postInstall }
'' ;
'' + p o s t I n s t a l l ;
postFixup = ''
$ { cleanPackaging . checkForRemainingFiles }
'' ;
'' + p o s t F i x u p ;
meta = {
homepage = " h t t p s : / / s k a r n e t . o r g / s o f t w a r e / ${ pname } / " ;
@ -98,6 +95,9 @@ in stdenv.mkDerivation {
license = stdenv . lib . licenses . isc ;
maintainers = with lib . maintainers ;
[ pmahoney Profpatsch ] ++ maintainers ;
} ;
} // meta ;
}
} // builtins . removeAttrs args [
" s h a 2 5 6 " " c o n f i g u r e F l a g s " " p o s t I n s t a l l " " p o s t F i x u p "
" m e t a " " d e s c r i p t i o n " " p l a t f o r m s " " m a i n t a i n e r s "
] )