1
0
mirror of https://github.com/kmein/niveum synced 2026-03-16 10:11:08 +01:00

+ generate-shell-nix

This commit is contained in:
Kierán Meinhardt
2018-10-10 13:03:22 +02:00
parent 5b53dd89ce
commit e2ee80e2bb
6 changed files with 66 additions and 0 deletions

View File

@@ -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
View File

10
package/default.nix Normal file
View 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 ./.))

View 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
View 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;
};
}

View 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;
};
}