out-of-your-element: init at 1.2

This commit is contained in:
Daniel Lovbrotte Olsen 2023-10-14 16:44:20 +02:00
parent 161d1ed360
commit ad76e1a94e
3 changed files with 45 additions and 12 deletions

View File

@ -1,23 +1,23 @@
{ {
"nodes": { "nodes": {
"nixpkgs-lib": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1673743903, "lastModified": 1697239051,
"narHash": "sha256-sloY6KYyVOozJ1CkbgJPpZ99TKIjIvM+04V48C04sMQ=", "narHash": "sha256-TvKERJH5h470GWyTOgEKzxdBz9tjQdSGlAFDbHhAI7g=",
"owner": "nix-community", "owner": "nixos",
"repo": "nixpkgs.lib", "repo": "nixpkgs",
"rev": "7555e2dfcbac1533f047021f1744ac8871150f9f", "rev": "e0c8b6f719e911224906f3c059208a7f0e3441c7",
"type": "github" "type": "github"
}, },
"original": { "original": {
"owner": "nix-community", "owner": "nixos",
"repo": "nixpkgs.lib", "repo": "nixpkgs",
"type": "github" "type": "github"
} }
}, },
"root": { "root": {
"inputs": { "inputs": {
"nixpkgs-lib": "nixpkgs-lib" "nixpkgs": "nixpkgs"
} }
} }
}, },

View File

@ -2,13 +2,20 @@
description = "NixOS modules for matrix related services"; description = "NixOS modules for matrix related services";
inputs = { inputs = {
nixpkgs-lib.url = github:nix-community/nixpkgs.lib; # nixpkgs-lib.url = github:nix-community/nixpkgs.lib;
nixpkgs.url = github:nixos/nixpkgs;
}; };
outputs = { self, nixpkgs-lib }: { outputs = { self, nixpkgs }:
let
systems = [ "x86_64-linux"];
in {
nixosModules = { nixosModules = {
default = import ./module.nix; default = import ./module.nix;
}; };
lib = import ./lib.nix { lib = nixpkgs-lib.lib; }; lib = import ./lib.nix { lib = nixpkgs.lib; };
packages = nixpkgs.lib.genAttrs systems (system: {
out-of-your-element = nixpkgs.legacyPackages.${system}.callPackage ./pkgs/out-of-your-element {};
});
}; };
} }

View File

@ -0,0 +1,26 @@
{ lib
, buildNpmPackage
, fetchFromGitea
, git
}:
buildNpmPackage rec {
pname = "out-of-your-element";
version = "1.2";
src = fetchFromGitea {
domain = "gitdab.com";
owner = "cadence";
repo = "out-of-your-element";
rev = "v1.2";
hash = "sha256-rlp6Eens5gV0dwLpICjKaVhxNXXeb/S7l628eXYvZaY=";
};
npmDepsHash = "sha256-ComQ8ua7k8zg0Dzih+MVgjnySpSlLJmLqnwxADCUv7M=";
dontNpmBuild = true;
makeCacheWritable = true;
npmFlags = [ "--loglevel=verbose" ]; #"--legacy-peer-deps" ];
}