Restructure packages into subdirectories
This commit is contained in:
parent
3961e33ca1
commit
f91196c8a4
9 changed files with 45 additions and 20 deletions
40
packages/python3.11-bw-file-resubmit/package.nix
Normal file
40
packages/python3.11-bw-file-resubmit/package.nix
Normal file
|
@ -0,0 +1,40 @@
|
|||
{
|
||||
fetchFromGitHub ,
|
||||
pkgs ,
|
||||
stdenv ,
|
||||
} :
|
||||
|
||||
with pkgs . python311Packages ;
|
||||
with stdenv ;
|
||||
|
||||
mkDerivation {
|
||||
pname = "python-bw-file-resubmit" ;
|
||||
version = "2023-11-08-0655eb2" ;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "bookwyrm-social" ;
|
||||
repo = "bw-file-resubmit" ;
|
||||
rev = "0655eb24d77b5440f0221df99d87bbb1ea588181" ;
|
||||
hash = "sha256-RT3fF2oMsf0klUwMBJ02Dgdt2rsoB7A3SjiuyVuYU7A=" ;
|
||||
} ;
|
||||
|
||||
dontPatch = true ;
|
||||
dontConfigure = true ;
|
||||
dontBuild = true ;
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
mkdir -p $out/lib/python3.11/site-packages
|
||||
|
||||
# Dependencies
|
||||
|
||||
ln -s ${django}/lib/python3.11/site-packages/* $out/lib/python3.11/site-packages/
|
||||
|
||||
# The package itself
|
||||
|
||||
cp -r $src/src/file_resubmit $out/lib/python3.11/site-packages/
|
||||
|
||||
runHook postInstall
|
||||
'' ;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue