aboutsummaryrefslogtreecommitdiff
path: root/infra/libkookie/nixpkgs/pkgs/applications/version-management/sourcehut/paste.nix
diff options
context:
space:
mode:
Diffstat (limited to 'infra/libkookie/nixpkgs/pkgs/applications/version-management/sourcehut/paste.nix')
-rw-r--r--infra/libkookie/nixpkgs/pkgs/applications/version-management/sourcehut/paste.nix32
1 files changed, 32 insertions, 0 deletions
diff --git a/infra/libkookie/nixpkgs/pkgs/applications/version-management/sourcehut/paste.nix b/infra/libkookie/nixpkgs/pkgs/applications/version-management/sourcehut/paste.nix
new file mode 100644
index 000000000000..a2fdaa05efca
--- /dev/null
+++ b/infra/libkookie/nixpkgs/pkgs/applications/version-management/sourcehut/paste.nix
@@ -0,0 +1,32 @@
+{ stdenv, fetchgit, buildPythonPackage
+, python
+, srht, pyyaml }:
+
+buildPythonPackage rec {
+ pname = "pastesrht";
+ version = "0.11.2";
+
+ src = fetchgit {
+ url = "https://git.sr.ht/~sircmpwn/paste.sr.ht";
+ rev = version;
+ sha256 = "15hm5165v8a7ryw6i0vlf189slw4rp22cfgzznih18pbml7d0c8s";
+ };
+
+ nativeBuildInputs = srht.nativeBuildInputs;
+
+ propagatedBuildInputs = [
+ srht
+ pyyaml
+ ];
+
+ preBuild = ''
+ export PKGVER=${version}
+ '';
+
+ meta = with stdenv.lib; {
+ homepage = "https://git.sr.ht/~sircmpwn/paste.sr.ht";
+ description = "Ad-hoc text file hosting service for the sr.ht network";
+ license = licenses.agpl3;
+ maintainers = with maintainers; [ eadwu ];
+ };
+}