mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 15:03:28 +00:00
Merge pull request #314618 from gaykitty/stargazer-1.2.1
stargazer: 1.1.0 -> 1.2.1
This commit is contained in:
commit
4e2290525d
@ -1,9 +1,9 @@
|
||||
{ pkgs, lib, ... }:
|
||||
let
|
||||
test_script = pkgs.stdenv.mkDerivation rec {
|
||||
test_script = pkgs.stdenv.mkDerivation {
|
||||
pname = "stargazer-test-script";
|
||||
inherit (pkgs.stargazer) version src;
|
||||
buildInputs = with pkgs; [ (python3.withPackages (ps: with ps; [ cryptography ])) ];
|
||||
buildInputs = with pkgs; [ (python3.withPackages (ps: with ps; [ cryptography urllib3 ])) ];
|
||||
dontBuild = true;
|
||||
doCheck = false;
|
||||
installPhase = ''
|
||||
@ -11,7 +11,7 @@ let
|
||||
cp scripts/gemini-diagnostics $out/bin/test
|
||||
'';
|
||||
};
|
||||
test_env = pkgs.stdenv.mkDerivation rec {
|
||||
test_env = pkgs.stdenv.mkDerivation {
|
||||
pname = "stargazer-test-env";
|
||||
inherit (pkgs.stargazer) version src;
|
||||
buildPhase = ''
|
||||
@ -23,7 +23,7 @@ let
|
||||
cp -r * $out/
|
||||
'';
|
||||
};
|
||||
scgi_server = pkgs.stdenv.mkDerivation rec {
|
||||
scgi_server = pkgs.stdenv.mkDerivation {
|
||||
pname = "stargazer-test-scgi-server";
|
||||
inherit (pkgs.stargazer) version src;
|
||||
buildInputs = with pkgs; [ python3 ];
|
||||
@ -100,7 +100,12 @@ in
|
||||
}
|
||||
{
|
||||
route = "localhost:/no-exist";
|
||||
root = "./does_not_exist";
|
||||
root = "${test_env}/does_not_exist";
|
||||
}
|
||||
{
|
||||
route = "localhost=/rss.xml";
|
||||
root = "${test_env}/test_data/test_site";
|
||||
mime-override = "application/atom+xml";
|
||||
}
|
||||
];
|
||||
};
|
||||
|
@ -10,16 +10,16 @@
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "stargazer";
|
||||
version = "1.1.0";
|
||||
version = "1.2.1";
|
||||
|
||||
src = fetchFromSourcehut {
|
||||
owner = "~zethra";
|
||||
repo = "stargazer";
|
||||
rev = version;
|
||||
hash = "sha256-c0gKvVaMiUOGHlPmtaW6it8J9MusQY7BA/5F9I3ysMc=";
|
||||
hash = "sha256-pYize+MGChi1GxCNaQsNlHELtsPUvfFZMPl0Q+pOTp0=";
|
||||
};
|
||||
|
||||
cargoHash = "sha256-8VrEZZNSFLAjUagsiRApvjiXusBHLLn1O/+QKtQY4wg=";
|
||||
cargoHash = "sha256-KmVNRVyKD5q4/vWtnHM4nfiGg+uZvRl+l+Zk5hjWg9E=";
|
||||
|
||||
doCheck = false; # Uses external testing framework that requires network
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user