nixpkgs/pkgs/tools/virtualization/lxd-image-server/default.nix
c0bw3b 658d3e9af8 Treewide: fix wrong declaration of Apache License 2.0
These packages were announced as published under Apple Public Source
License 2.0 ('apsl20' short handle) but they are actually published
under the Apache License 2.0 ('asl20' short handle)
2022-01-02 15:23:43 +01:00

48 lines
924 B
Nix

{ lib
, openssl
, rsync
, python3
, fetchFromGitHub
}:
python3.pkgs.buildPythonApplication rec {
pname = "lxd-image-server";
version = "0.0.4";
src = fetchFromGitHub {
owner = "Avature";
repo = "lxd-image-server";
rev = version;
sha256 = "yx8aUmMfSzyWaM6M7+WcL6ouuWwOpqLzODWSdNgwCwo=";
};
patches = [
./state.patch
./run.patch
];
propagatedBuildInputs = with python3.pkgs; [
setuptools
attrs
click
inotify
cryptography
confight
python-pidfile
];
makeWrapperArgs = [
''--prefix PATH ':' "${lib.makeBinPath [ openssl rsync ]}"''
];
doCheck = false;
meta = with lib; {
description = "Creates and manages a simplestreams lxd image server on top of nginx";
homepage = "https://github.com/Avature/lxd-image-server";
license = licenses.asl20;
platforms = platforms.unix;
maintainers = with maintainers; [ mkg20001 ];
};
}