uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
98
pkgs/applications/version-management/sourcehut/core.nix
Normal file
98
pkgs/applications/version-management/sourcehut/core.nix
Normal file
|
|
@ -0,0 +1,98 @@
|
|||
{ lib
|
||||
, fetchgit
|
||||
, fetchNodeModules
|
||||
, buildPythonPackage
|
||||
, pgpy
|
||||
, flask
|
||||
, bleach
|
||||
, misaka
|
||||
, humanize
|
||||
, html5lib
|
||||
, markdown
|
||||
, psycopg2
|
||||
, pygments
|
||||
, requests
|
||||
, sqlalchemy
|
||||
, cryptography
|
||||
, beautifulsoup4
|
||||
, sqlalchemy-utils
|
||||
, prometheus-client
|
||||
, celery
|
||||
, alembic
|
||||
, importlib-metadata
|
||||
, mistletoe
|
||||
, minio
|
||||
, sassc
|
||||
, nodejs
|
||||
, redis
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "srht";
|
||||
version = "0.68.14";
|
||||
|
||||
src = fetchgit {
|
||||
url = "https://git.sr.ht/~sircmpwn/core.sr.ht";
|
||||
rev = version;
|
||||
sha256 = "sha256-BY3W2rwrg0mhH3CltgUqg6Xv8Ve5VZNY/lI1cfbAjYM=";
|
||||
fetchSubmodules = true;
|
||||
};
|
||||
|
||||
node_modules = fetchNodeModules {
|
||||
src = "${src}/srht";
|
||||
nodejs = nodejs;
|
||||
sha256 = "sha256-IWKahdWv3qJ5DNyb1GB9JWYkZxghn6wzZe68clYXij8=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
# Disable check for npm
|
||||
./disable-npm-install.patch
|
||||
];
|
||||
|
||||
nativeBuildInputs = [
|
||||
sassc
|
||||
nodejs
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
pgpy
|
||||
flask
|
||||
bleach
|
||||
misaka
|
||||
humanize
|
||||
html5lib
|
||||
markdown
|
||||
psycopg2
|
||||
pygments
|
||||
requests
|
||||
mistletoe
|
||||
sqlalchemy
|
||||
cryptography
|
||||
beautifulsoup4
|
||||
sqlalchemy-utils
|
||||
prometheus-client
|
||||
|
||||
# Unofficial runtime dependencies?
|
||||
celery
|
||||
alembic
|
||||
importlib-metadata
|
||||
minio
|
||||
redis
|
||||
];
|
||||
|
||||
PKGVER = version;
|
||||
|
||||
preBuild = ''
|
||||
cp -r ${node_modules} srht/node_modules
|
||||
'';
|
||||
|
||||
dontUseSetuptoolsCheck = true;
|
||||
pythonImportsCheck = [ "srht" ];
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://git.sr.ht/~sircmpwn/srht";
|
||||
description = "Core modules for sr.ht";
|
||||
license = licenses.bsd3;
|
||||
maintainers = with maintainers; [ eadwu ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue