mirror of
https://github.com/kmein/niveum
synced 2026-03-16 10:11:08 +01:00
+ generate-shell-nix
This commit is contained in:
@@ -635,6 +635,11 @@ let
|
|||||||
eval $(${spotifyCli} eval)
|
eval $(${spotifyCli} eval)
|
||||||
${pkgs.xdg_utils}/bin/xdg-open "http://genius.com/$(normalise "$SPOTIFY_ARTIST")-$(normalise "$SPOTIFY_TITLE")-lyrics"
|
${pkgs.xdg_utils}/bin/xdg-open "http://genius.com/$(normalise "$SPOTIFY_ARTIST")-$(normalise "$SPOTIFY_TITLE")-lyrics"
|
||||||
'';
|
'';
|
||||||
|
generateShellNix = pkgs.fetchurl {
|
||||||
|
url = "https://raw.githubusercontent.com/kmein/generate-shell-nix/81f77661705ee628d1566f2dea01f2d731fda79d/generate-shell-nix";
|
||||||
|
sha256 = "0r661z9s5zw0gas2f73aakplfblj1jjlbijmm7gf513xkq61jxm8";
|
||||||
|
executable = true;
|
||||||
|
};
|
||||||
in {
|
in {
|
||||||
compile = compile;
|
compile = compile;
|
||||||
easy-backup = easyBackup;
|
easy-backup = easyBackup;
|
||||||
@@ -647,4 +652,5 @@ in {
|
|||||||
htags = haskellTags;
|
htags = haskellTags;
|
||||||
sp = spotifyCli;
|
sp = spotifyCli;
|
||||||
spgenius = spotifyGenius;
|
spgenius = spotifyGenius;
|
||||||
|
generate-shell-nix = generateShellNix;
|
||||||
}
|
}
|
||||||
|
|||||||
0
generate-shell-nix
Normal file
0
generate-shell-nix
Normal file
10
package/default.nix
Normal file
10
package/default.nix
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
{ lib }:
|
||||||
|
with lib;
|
||||||
|
let
|
||||||
|
callPackage = set: f: overrides: f ((builtins.intersectAttrs (builtins.functionArgs f) set) // overrides);
|
||||||
|
subdirsOf = path: lib.mapAttrs (name: _: path + "/${name}") (filterAttrs (_: eq "directory") (readDir path));
|
||||||
|
in mapAttrs
|
||||||
|
(_: flip callPackage {})
|
||||||
|
(filterAttrs
|
||||||
|
(_: dir: pathExists (dir + "/default.nix"))
|
||||||
|
(subdirsOf ./.))
|
||||||
14
package/flask-graphql/default.nix
Normal file
14
package/flask-graphql/default.nix
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
with import <nixpkgs> {};
|
||||||
|
buildPythonPackage {
|
||||||
|
name = "flask-graphql";
|
||||||
|
src = fetchurl {
|
||||||
|
url = "https://files.pythonhosted.org/packages/d6/8c/043bd1deec422d33c31961dd93d952236326b1e5bbca6d3479383360ac42/Flask-GraphQL-2.0.0.tar.gz";
|
||||||
|
md5 = "72dacc65c7879d4d84d871fff5d5cf0c";
|
||||||
|
};
|
||||||
|
propagatedBuildInputs = with pkgs.python36Packages; [ graphql-core flask graphql-server-core ];
|
||||||
|
meta = with stdenv.lib; {
|
||||||
|
description = "Flask-GraphQL";
|
||||||
|
homepage = https://github.com/graphql-python/flask-graphql;
|
||||||
|
license = licenses.mit;
|
||||||
|
};
|
||||||
|
}
|
||||||
14
package/gdom/default.nix
Normal file
14
package/gdom/default.nix
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
with import <nixpkgs> {};
|
||||||
|
buildPythonPackage {
|
||||||
|
name = "gdom";
|
||||||
|
src = fetchurl {
|
||||||
|
url = "https://files.pythonhosted.org/packages/76/79/1ccbf38c32576dbb29efdc35819f96a99768266cdf6dc1586aef0e9fbe73/gdom-1.0.0.tar.gz";
|
||||||
|
md5 = "f1ec05032cefc74d023fcdf8a24177f6";
|
||||||
|
};
|
||||||
|
propagatedBuildInputs = with pkgs.python36Packages; [ graphene flask-graphql pyquery requests ];
|
||||||
|
meta = with stdenv.lib; {
|
||||||
|
description = "GDOM";
|
||||||
|
homepage = http://github.com/syrusakbary/gdom;
|
||||||
|
license = licenses.mit;
|
||||||
|
};
|
||||||
|
}
|
||||||
22
package/graphene/default.nix
Normal file
22
package/graphene/default.nix
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
\
|
||||||
|
# This expression has been automatically generated by https://github.com/proger/python2nix.
|
||||||
|
|
||||||
|
{ buildPythonPackage, fetchurl, stdenv }:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
|
||||||
|
name = "graphene";
|
||||||
|
|
||||||
|
src = fetchurl {
|
||||||
|
url = "https://files.pythonhosted.org/packages/ad/d0/c3eb1819a9349e9ce5cb3b906a33ea59ffa2666e08a940f7551506478713/graphene-2.1.3.tar.gz";
|
||||||
|
md5 = "e93c0b3be2503c088dddcb25350d2a59";
|
||||||
|
};
|
||||||
|
|
||||||
|
propagatedBuildInputs = [ ];
|
||||||
|
|
||||||
|
meta = with stdenv.lib; {
|
||||||
|
description = "Please read `UPGRADE-v2.0.md </UPGRADE-v2.0.md>`__ to learn how to";
|
||||||
|
homepage = https://github.com/graphql-python/graphene;
|
||||||
|
license = licenses.mit;
|
||||||
|
};
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user