mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git
synced 2024-11-28 06:51:28 +00:00
use git revision as Nix derivation version
This commit is contained in:
parent
b3a6e6393c
commit
fa766b7027
|
@ -1,8 +1,8 @@
|
||||||
{ pythonPackages }:
|
{ pythonPackages, rev ? "local" }:
|
||||||
|
|
||||||
pythonPackages.buildPythonApplication rec {
|
pythonPackages.buildPythonApplication rec {
|
||||||
pname = "selfprivacy-graphql-api";
|
pname = "selfprivacy-graphql-api";
|
||||||
version = "local";
|
version = rev;
|
||||||
src = builtins.filterSource (p: t: p != ".git" && t != "symlink") ./.;
|
src = builtins.filterSource (p: t: p != ".git" && t != "symlink") ./.;
|
||||||
propagatedBuildInputs = with pythonPackages; [
|
propagatedBuildInputs = with pythonPackages; [
|
||||||
fastapi
|
fastapi
|
||||||
|
|
|
@ -9,6 +9,7 @@
|
||||||
pkgs = nixpkgs.legacyPackages.${system};
|
pkgs = nixpkgs.legacyPackages.${system};
|
||||||
selfprivacy-graphql-api = pkgs.callPackage ./default.nix {
|
selfprivacy-graphql-api = pkgs.callPackage ./default.nix {
|
||||||
pythonPackages = pkgs.python310Packages;
|
pythonPackages = pkgs.python310Packages;
|
||||||
|
rev = self.shortRev or self.dirtyShortRev or "dirty";
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue