git.iko.soy/typeable/nixpkgs
on master help sign in
pastebinit: fix basic usage
commit9ebf4409d2302d859f0dfa1c52ec23f0f4730078 authorArnout Engelen <arnout@bzzt.net> dateFri 13 Nov 2020, 16:25 (6 years ago) parenta371c10
1 file changed+26−3
pkgs/tools/misc/pastebinit/default.nix+26−3
pkgs/tools/misc/pastebinit/default.nix+26−3
@@ -1,4 +1,8 @@
1−{ stdenv, fetchurl, python3 }:
1+{ stdenv
2+, fetchurl
3+, fetchpatch
4+, python3
5+}:
26
37stdenv.mkDerivation rec {
48 version = "1.5";
@@ -9,7 +13,26 @@ stdenv.mkDerivation rec {
913 sha256 = "0mw48fgm9lyh9d3pw997fccmglzsjccf2y347gxjas74wx6aira2";
1014 };
1115
12− buildInputs = [ python3 ];
16+ buildInputs = [
17+ (python3.withPackages (p: [ p.distro ]))
18+ ];
19+
20+ patchFlags = [ "-p0" ];
21+
22+ patches = [
23+ # Required to allow pastebinit 1.5 to run on Python 3.8
24+ (fetchpatch {
25+ name = "use-distro-module.patch";
26+ url = "https://bazaar.launchpad.net/~arnouten/pastebinit/python38/diff/264?context=3";
27+ sha256 = "1gp5inp4xald65xbb7fc5aqq5s2fhw464niwjjja9anqyp3zhawj";
28+ })
29+ # Required because pastebin.com now redirects http requests to https
30+ (fetchpatch {
31+ name = "pastebin-com-https.patch";
32+ url = "https://bazaar.launchpad.net/~arnouten/pastebinit/pastebin-com-https/diff/264?context=3";
33+ sha256 = "0hxhhfcai0mll8qfyhdl3slmbf34ynb759b648x63274m9nd2kji";
34+ })
35+ ];
1336
1437 installPhase = ''
1538 mkdir -p $out/bin
@@ -22,7 +45,7 @@ stdenv.mkDerivation rec {
2245 meta = with stdenv.lib; {
2346 homepage = "https://launchpad.net/pastebinit";
2447 description = "A software that lets you send anything you want directly to a pastebin from the command line";
25− maintainers = with maintainers; [ lethalman ];
48+ maintainers = with maintainers; [ lethalman raboof ];
2649 license = licenses.gpl2;
2750 platforms = platforms.linux;
2851 };