Compare commits
	
		
			41 Commits
		
	
	
		
			jetbrains
			...
			b8e4f0929a
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 
						
						
							
						
						b8e4f0929a
	
				 | 
					
					
						|||
| 
						
						
							
						
						85aebac63d
	
				 | 
					
					
						|||
| 
						 | 
					0254963dec | ||
| 
						 | 
					0b3995a7e3 | ||
| 7414d45aa4 | |||
| ee0cf26f5b | |||
| 
						 | 
					658b1fa08c | ||
| 
						 | 
					fc33441151 | ||
| 
						
						
							
						
						0bb9971c38
	
				 | 
					
					
						|||
| 
						
						
							
						
						1530197670
	
				 | 
					
					
						|||
| 
						
						
							
						
						2c575d6596
	
				 | 
					
					
						|||
| 
						 | 
					5648d1d005 | ||
| 
						 | 
					d97d0fc259 | ||
| f5adcca761 | |||
| 6d3581ac49 | |||
| 94be83c704 | |||
| fe773352f5 | |||
| 311fb3ff98 | |||
| 260db819e7 | |||
| ba5c904cb7 | |||
| f616baa7b2 | |||
| 
						 | 
					d1ad137626 | ||
| 0335b240b6 | |||
| 
						 | 
					7edffe7e56 | ||
| 
						
						
							
						
						f218f59184
	
				 | 
					
					
						|||
| 
						
						
							
						
						1b190f8a81
	
				 | 
					
					
						|||
| 
						
						
							
						
						f7f4206afa
	
				 | 
					
					
						|||
| 
						 | 
					
						
						
							
						
						ca67f392b5
	
				 | 
					
					
						||
| 
						 | 
					
						
						
							
						
						3ce504e445
	
				 | 
					
					
						||
| 
						 | 
					
						
						
							
						
						58abb0d562
	
				 | 
					
					
						||
| 
						
						
							
						
						2cf1b51843
	
				 | 
					
					
						|||
| 
						
						
							
						
						d8ae11352e
	
				 | 
					
					
						|||
| 
						
						
							
						
						7078ef0677
	
				 | 
					
					
						|||
| 
						
						
							
						
						b2c0121005
	
				 | 
					
					
						|||
| 
						
						
							
						
						cf95fb9600
	
				 | 
					
					
						|||
| 
						
						
							
						
						3c27e38073
	
				 | 
					
					
						|||
| 
						 | 
					86f1713639 | ||
| 
						
						
							
						
						3dbd760954
	
				 | 
					
					
						|||
| 
						
						
							
						
						8b290acc50
	
				 | 
					
					
						|||
| 
						
						
							
						
						b960c361a9
	
				 | 
					
					
						|||
| 
						 | 
					0c87ddac9e | 
							
								
								
									
										13
									
								
								.github/workflows/build.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										13
									
								
								.github/workflows/build.yml
									
									
									
									
										vendored
									
									
								
							@@ -29,29 +29,30 @@ jobs:
 | 
			
		||||
        cachixName:
 | 
			
		||||
          - xeals
 | 
			
		||||
        nixPath:
 | 
			
		||||
          - nixpkgs=channel:nixos-unstable
 | 
			
		||||
          # - nixpkgs=channel:nixos-unstable
 | 
			
		||||
          - nixpkgs=channel:nixpkgs-unstable
 | 
			
		||||
          # Disable due to buildGoModule and buildRustPackage
 | 
			
		||||
          # - nixpkgs=channel:nixos-20.03
 | 
			
		||||
    runs-on: ubuntu-latest
 | 
			
		||||
    steps:
 | 
			
		||||
    - name: Checkout repository
 | 
			
		||||
      uses: actions/checkout@v2.3.4
 | 
			
		||||
      uses: actions/checkout@v3
 | 
			
		||||
    - name: Install nix
 | 
			
		||||
      uses: cachix/install-nix-action@v12
 | 
			
		||||
      uses: cachix/install-nix-action@v18
 | 
			
		||||
      with:
 | 
			
		||||
        nix_path: "${{ matrix.nixPath }}"
 | 
			
		||||
        extra_nix_config: |
 | 
			
		||||
          experimental-features = nix-command flakes
 | 
			
		||||
    - name: Show nixpkgs version
 | 
			
		||||
      run: nix-instantiate --eval -E '(import <nixpkgs> {}).lib.version'
 | 
			
		||||
    - name: Setup cachix
 | 
			
		||||
      uses: cachix/cachix-action@v8
 | 
			
		||||
      uses: cachix/cachix-action@v11
 | 
			
		||||
      if: ${{ matrix.cachixName != '<YOUR_CACHIX_NAME>' }}
 | 
			
		||||
      with:
 | 
			
		||||
        name: ${{ matrix.cachixName }}
 | 
			
		||||
        signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}'
 | 
			
		||||
    - name: Build nix packages
 | 
			
		||||
      # TODO switch to default nixpkgs channel once nix-build-uncached 1.0.0 is in stable
 | 
			
		||||
      run: nix run -I 'nixpkgs=channel:nixos-unstable' nixpkgs.nix-build-uncached -c nix-build-uncached ci.nix -A cacheOutputs
 | 
			
		||||
      run: nix shell -f '<nixpkgs>' nix-build-uncached -c nix-build-uncached ci.nix -A cacheOutputs
 | 
			
		||||
    - name: Trigger NUR update
 | 
			
		||||
      if: ${{ matrix.nurRepo != '<YOUR_REPO_NAME>' }}
 | 
			
		||||
      run: curl -XPOST "https://nur-update.herokuapp.com/update?repo=${{ matrix.nurRepo }}"
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										22
									
								
								flake.lock
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										22
									
								
								flake.lock
									
									
									
										generated
									
									
									
								
							@@ -1,27 +1,12 @@
 | 
			
		||||
{
 | 
			
		||||
  "nodes": {
 | 
			
		||||
    "flake-utils": {
 | 
			
		||||
      "locked": {
 | 
			
		||||
        "lastModified": 1605370193,
 | 
			
		||||
        "narHash": "sha256-YyMTf3URDL/otKdKgtoMChu4vfVL3vCMkRqpGifhUn0=",
 | 
			
		||||
        "owner": "numtide",
 | 
			
		||||
        "repo": "flake-utils",
 | 
			
		||||
        "rev": "5021eac20303a61fafe17224c087f5519baed54d",
 | 
			
		||||
        "type": "github"
 | 
			
		||||
      },
 | 
			
		||||
      "original": {
 | 
			
		||||
        "owner": "numtide",
 | 
			
		||||
        "repo": "flake-utils",
 | 
			
		||||
        "type": "github"
 | 
			
		||||
      }
 | 
			
		||||
    },
 | 
			
		||||
    "nixpkgs": {
 | 
			
		||||
      "locked": {
 | 
			
		||||
        "lastModified": 1611414562,
 | 
			
		||||
        "narHash": "sha256-u002KfYA7Uk3vffnnmLz88BmxOzixYFdh+8II6ZT+Kg=",
 | 
			
		||||
        "lastModified": 1650194139,
 | 
			
		||||
        "narHash": "sha256-kurZsqeOw5fpqA/Ig+8tHvbjwzs5P9AE6WUKOX1m6qM=",
 | 
			
		||||
        "owner": "NixOS",
 | 
			
		||||
        "repo": "nixpkgs",
 | 
			
		||||
        "rev": "9d6fd2ba135c5b5c85c3332604d39b43e93b8298",
 | 
			
		||||
        "rev": "bd4dffcdb7c577d74745bd1eff6230172bd176d5",
 | 
			
		||||
        "type": "github"
 | 
			
		||||
      },
 | 
			
		||||
      "original": {
 | 
			
		||||
@@ -33,7 +18,6 @@
 | 
			
		||||
    },
 | 
			
		||||
    "root": {
 | 
			
		||||
      "inputs": {
 | 
			
		||||
        "flake-utils": "flake-utils",
 | 
			
		||||
        "nixpkgs": "nixpkgs"
 | 
			
		||||
      }
 | 
			
		||||
    }
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										78
									
								
								flake.nix
									
									
									
									
									
								
							
							
						
						
									
										78
									
								
								flake.nix
									
									
									
									
									
								
							@@ -1,18 +1,31 @@
 | 
			
		||||
{
 | 
			
		||||
  description = "xeals's flake";
 | 
			
		||||
  description = "xeals's Nix repository";
 | 
			
		||||
 | 
			
		||||
  inputs = {
 | 
			
		||||
    nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
 | 
			
		||||
    flake-utils.url = "github:numtide/flake-utils";
 | 
			
		||||
  };
 | 
			
		||||
  inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
 | 
			
		||||
 | 
			
		||||
  outputs = { self, nixpkgs, flake-utils }:
 | 
			
		||||
  outputs = { self, nixpkgs }:
 | 
			
		||||
    let
 | 
			
		||||
      inherit (flake-utils.lib) eachDefaultSystem flattenTree;
 | 
			
		||||
      inherit (nixpkgs.lib.attrsets) filterAttrs mapAttrs;
 | 
			
		||||
 | 
			
		||||
      inherit (nixpkgs) lib;
 | 
			
		||||
 | 
			
		||||
      supportedSystems = [
 | 
			
		||||
        "aarch64-darwin"
 | 
			
		||||
        "aarch64-linux"
 | 
			
		||||
        "i686-linux"
 | 
			
		||||
        "x86_64-darwin"
 | 
			
		||||
        "x86_64-linux"
 | 
			
		||||
      ];
 | 
			
		||||
 | 
			
		||||
      forAllSystems = f: lib.genAttrs supportedSystems (system: f system);
 | 
			
		||||
 | 
			
		||||
    in
 | 
			
		||||
    {
 | 
			
		||||
      nixosModules = mapAttrs (_: path: import path) (import ./modules);
 | 
			
		||||
 | 
			
		||||
      nixosModules = lib.mapAttrs (_: path: import path) (import ./modules);
 | 
			
		||||
 | 
			
		||||
      nixosModule = {
 | 
			
		||||
        imports = lib.attrValues self.nixosModules;
 | 
			
		||||
      };
 | 
			
		||||
 | 
			
		||||
      overlays = import ./overlays // {
 | 
			
		||||
        pkgs = final: prev: import ./pkgs/top-level/all-packages.nix { pkgs = prev; };
 | 
			
		||||
@@ -21,27 +34,30 @@
 | 
			
		||||
      overlay = final: prev: {
 | 
			
		||||
        xeals = nixpkgs.lib.composeExtensions self.overlays.pkgs;
 | 
			
		||||
      };
 | 
			
		||||
    } // eachDefaultSystem (system:
 | 
			
		||||
      let
 | 
			
		||||
        pkgs = nixpkgs.legacyPackages.${system};
 | 
			
		||||
        xPkgs = import ./pkgs/top-level/all-packages.nix { inherit pkgs; };
 | 
			
		||||
        mkApp = opts: { type = "app"; } // opts;
 | 
			
		||||
      in
 | 
			
		||||
      rec {
 | 
			
		||||
        packages = filterAttrs
 | 
			
		||||
          (attr: drv: builtins.elem system (drv.meta.platforms or [ ]))
 | 
			
		||||
          (flattenTree xPkgs);
 | 
			
		||||
 | 
			
		||||
        apps = flattenTree {
 | 
			
		||||
          alacritty = mkApp { program = "${packages.alacritty-ligatures}/bin/alacritty"; };
 | 
			
		||||
          protonmail-bridge = mkApp { program = "${packages.protonmail-bridge}/bin/protonmail-bridge"; };
 | 
			
		||||
          protonmail-bridge-headless = mkApp { program = "${packages.protonmail-bridge}/bin/protonmail-bridge"; };
 | 
			
		||||
          psst = {
 | 
			
		||||
            cli = mkApp { program = "${packages.psst}/bin/psst-cli"; };
 | 
			
		||||
            gui = mkApp { program = "${packages.psst}/bin/psst-gui"; };
 | 
			
		||||
          };
 | 
			
		||||
          samrewritten = mkApp { program = "${packages.samrewritten}/bin/samrewritten"; };
 | 
			
		||||
          spotify-ripper = mkApp { program = "${packages.spotify-ripper}/bin/spotify-ripper"; };
 | 
			
		||||
        };
 | 
			
		||||
      });
 | 
			
		||||
      packages = forAllSystems (system:
 | 
			
		||||
        let
 | 
			
		||||
          pkgs = nixpkgs.legacyPackages.${system};
 | 
			
		||||
          xPkgs = import ./pkgs/top-level/all-packages.nix { inherit pkgs; };
 | 
			
		||||
        in
 | 
			
		||||
        lib.filterAttrs
 | 
			
		||||
          (attr: drv: builtins.elem system (drv.meta.platforms or [ ]))
 | 
			
		||||
          xPkgs);
 | 
			
		||||
 | 
			
		||||
      apps = forAllSystems (system:
 | 
			
		||||
        let
 | 
			
		||||
          mkApp = opts: { type = "app"; } // opts;
 | 
			
		||||
          pkgs = self.packages.${system};
 | 
			
		||||
        in
 | 
			
		||||
        {
 | 
			
		||||
          alacritty = mkApp { program = "${pkgs.alacritty-ligatures}/bin/alacritty"; };
 | 
			
		||||
          protonmail-bridge = mkApp { program = "${pkgs.protonmail-bridge}/bin/protonmail-bridge"; };
 | 
			
		||||
          protonmail-bridge-headless = mkApp { program = "${pkgs.protonmail-bridge}/bin/protonmail-bridge"; };
 | 
			
		||||
          psst-cli = mkApp { program = "${pkgs.psst}/bin/psst-cli"; };
 | 
			
		||||
          psst-gui = mkApp { program = "${pkgs.psst}/bin/psst-gui"; };
 | 
			
		||||
          samrewritten = mkApp { program = "${pkgs.samrewritten}/bin/samrewritten"; };
 | 
			
		||||
          spotify-ripper = mkApp { program = "${pkgs.spotify-ripper}/bin/spotify-ripper"; };
 | 
			
		||||
        });
 | 
			
		||||
 | 
			
		||||
    };
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -2,6 +2,7 @@
 | 
			
		||||
  amdgpu-common = ./services/hardware/amdgpu-common.nix;
 | 
			
		||||
  amdgpu-fan = ./services/hardware/amdgpu-fan.nix;
 | 
			
		||||
  amdgpu-pwm = ./services/hardware/amdgpu-pwm.nix;
 | 
			
		||||
  dunst = ./services/x11/dunst.nix;
 | 
			
		||||
  radeon-profile-daemon = ./services/hardware/radeon-profile-daemon.nix;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -7,7 +7,7 @@ with lib;
 | 
			
		||||
    cards = mkOption {
 | 
			
		||||
      type = types.listOf types.str;
 | 
			
		||||
      default = [ "card0" ];
 | 
			
		||||
      example = literalExample ''[ "card0" ]'';
 | 
			
		||||
      example = [ "card0" "card1" ];
 | 
			
		||||
      description = ''
 | 
			
		||||
        A list of cards to enable fan configuration for. The identifiers for
 | 
			
		||||
        each device can be found in /sys/class/drm/ as card0, card1, etc.
 | 
			
		||||
 
 | 
			
		||||
@@ -33,14 +33,12 @@ in
 | 
			
		||||
        [ 75 89 ]
 | 
			
		||||
        [ 80 100 ]
 | 
			
		||||
      ];
 | 
			
		||||
      example = literalExample ''
 | 
			
		||||
        [
 | 
			
		||||
          [ 0 0 ]
 | 
			
		||||
          [ 40 30 ]
 | 
			
		||||
          [ 60 50 ]
 | 
			
		||||
          [ 80 100 ]
 | 
			
		||||
        ]
 | 
			
		||||
      '';
 | 
			
		||||
      example = [
 | 
			
		||||
        [ 0 0 ]
 | 
			
		||||
        [ 40 30 ]
 | 
			
		||||
        [ 60 50 ]
 | 
			
		||||
        [ 80 100 ]
 | 
			
		||||
      ];
 | 
			
		||||
      description = ''
 | 
			
		||||
        A list of temperature-fan speed pairs. The temperature is specified in
 | 
			
		||||
        degrees celcius, and speed is specified in %.
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										68
									
								
								modules/services/x11/dunst.nix
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										68
									
								
								modules/services/x11/dunst.nix
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,68 @@
 | 
			
		||||
{ config, lib, pkgs, ... }:
 | 
			
		||||
 | 
			
		||||
with lib;
 | 
			
		||||
let
 | 
			
		||||
  cfg = config.services.dunst;
 | 
			
		||||
in
 | 
			
		||||
{
 | 
			
		||||
  options.services.dunst = {
 | 
			
		||||
    enable = mkEnableOption "dunst";
 | 
			
		||||
 | 
			
		||||
    package = mkOption {
 | 
			
		||||
      type = types.package;
 | 
			
		||||
      default = pkgs.dunst;
 | 
			
		||||
    };
 | 
			
		||||
 | 
			
		||||
    settings = mkOption {
 | 
			
		||||
      type = types.nullOr types.attrs;
 | 
			
		||||
      default = null;
 | 
			
		||||
      description = ''
 | 
			
		||||
        Configuration set alternative to <literal>configFile</literal>.
 | 
			
		||||
      '';
 | 
			
		||||
      example = {
 | 
			
		||||
        global = {
 | 
			
		||||
          monitor = 0;
 | 
			
		||||
          follow = "none";
 | 
			
		||||
        };
 | 
			
		||||
      };
 | 
			
		||||
    };
 | 
			
		||||
 | 
			
		||||
    configFile = mkOption {
 | 
			
		||||
      type = types.nullOr types.path;
 | 
			
		||||
      default = null;
 | 
			
		||||
      description = "Path to dunstrc configuration file.";
 | 
			
		||||
    };
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
  config = mkIf cfg.enable {
 | 
			
		||||
    assertions = [
 | 
			
		||||
      {
 | 
			
		||||
        assertion = !(cfg.settings != null && cfg.configFile != null);
 | 
			
		||||
        message = "only one of services.dunst.settings or .configFile may be specified";
 | 
			
		||||
      }
 | 
			
		||||
    ];
 | 
			
		||||
 | 
			
		||||
    environment.systemPackages = [ (getOutput "man" cfg.package) ];
 | 
			
		||||
 | 
			
		||||
    systemd.user.services.dunst = {
 | 
			
		||||
      description = "Dunst notification daemon";
 | 
			
		||||
      documentation = [ "man:dunst(1)" ];
 | 
			
		||||
      after = [ "graphical-session-pre.target" ];
 | 
			
		||||
      partOf = [ "graphical-session.target" ];
 | 
			
		||||
      serviceConfig = {
 | 
			
		||||
        Type = "dbus";
 | 
			
		||||
        BusName = "org.freedesktop.Notifications";
 | 
			
		||||
        ExecStart =
 | 
			
		||||
          let
 | 
			
		||||
            config =
 | 
			
		||||
              if (cfg.settings != null)
 | 
			
		||||
              then pkgs.writeText "dunstrc" (generators.toINI { } cfg.settings)
 | 
			
		||||
              else if (cfg.configFile != null)
 | 
			
		||||
              then cfg.configFile
 | 
			
		||||
              else null;
 | 
			
		||||
          in
 | 
			
		||||
          "${cfg.package}/bin/dunst ${optionalString (config != null) "-conf ${config}"}";
 | 
			
		||||
      };
 | 
			
		||||
    };
 | 
			
		||||
  };
 | 
			
		||||
}
 | 
			
		||||
@@ -1,4 +1,5 @@
 | 
			
		||||
{ stdenv
 | 
			
		||||
, lib
 | 
			
		||||
, fetchFromGitHub
 | 
			
		||||
, python3Packages
 | 
			
		||||
 | 
			
		||||
@@ -20,7 +21,7 @@ python3Packages.buildPythonApplication rec {
 | 
			
		||||
 | 
			
		||||
  doCheck = false;
 | 
			
		||||
 | 
			
		||||
  meta = with stdenv.lib; {
 | 
			
		||||
  meta = with lib; {
 | 
			
		||||
    homepage = "https://github.com/Prior99/mopidy-subidy";
 | 
			
		||||
    description = "Mopidy extension for playing music from Subsonic servers";
 | 
			
		||||
    license = licenses.bsd3;
 | 
			
		||||
 
 | 
			
		||||
@@ -1,9 +1,12 @@
 | 
			
		||||
{ stdenv
 | 
			
		||||
, lib
 | 
			
		||||
, fetchFromGitHub
 | 
			
		||||
, rustPlatform
 | 
			
		||||
 | 
			
		||||
, cmake
 | 
			
		||||
, pkg-config
 | 
			
		||||
, alsaLib
 | 
			
		||||
, dbus
 | 
			
		||||
, openssl
 | 
			
		||||
 | 
			
		||||
  # GUI
 | 
			
		||||
@@ -14,27 +17,27 @@
 | 
			
		||||
}:
 | 
			
		||||
 | 
			
		||||
let
 | 
			
		||||
  inherit (stdenv.lib) optional optionals;
 | 
			
		||||
  inherit (lib) optional optionals;
 | 
			
		||||
in
 | 
			
		||||
 | 
			
		||||
assert withGui -> gtk3.meta.available;
 | 
			
		||||
 | 
			
		||||
rustPlatform.buildRustPackage rec {
 | 
			
		||||
  pname = "psst";
 | 
			
		||||
  version = "20210122.gec114ac";
 | 
			
		||||
  version = "20221012.d70ed81";
 | 
			
		||||
  src = fetchFromGitHub {
 | 
			
		||||
    owner = "jpochyla";
 | 
			
		||||
    repo = "psst";
 | 
			
		||||
    rev = "ec114ac8299179c8dd51bc026d6060dc75658b83";
 | 
			
		||||
    sha256 = "02mh6hjnlimadc3w899hccss31p1r4sxgb5880zwn7yiycbq3yyj";
 | 
			
		||||
    rev = "d70ed8104533dc15bc36b989ba8428872c9b578f";
 | 
			
		||||
    hash = "sha256-ZKhHN0ruLb6ZVKkrKv/YawRsVop6SP1QF/nrtkmA8P8=";
 | 
			
		||||
    fetchSubmodules = true;
 | 
			
		||||
  };
 | 
			
		||||
  cargoSha256 = "1m01rycnpy9asspih1x9l5ppfbjnqcfdycmzgkrmdwzah3x8s8xc";
 | 
			
		||||
  cargoSha256 = "sha256-zH6+EV78FDVOYEFXk0f54pH2Su0QpK1I0bHqzIiMdBo=";
 | 
			
		||||
 | 
			
		||||
  nativeBuildInputs = [ pkg-config ]
 | 
			
		||||
    ++ optional withGui copyDesktopItems;
 | 
			
		||||
 | 
			
		||||
  buildInputs = [ openssl ]
 | 
			
		||||
  buildInputs = [ alsaLib dbus openssl ]
 | 
			
		||||
    ++ optional withGui gtk3;
 | 
			
		||||
 | 
			
		||||
  cargoBuildFlags = optionals (!withGui) [
 | 
			
		||||
@@ -54,16 +57,16 @@ rustPlatform.buildRustPackage rec {
 | 
			
		||||
      name = pname;
 | 
			
		||||
      desktopName = "psst";
 | 
			
		||||
      genericName = "Spotify Player";
 | 
			
		||||
      categories = "AudioVideo;Audio;Network;Player;";
 | 
			
		||||
      categories = [ "AudioVideo" "Audio" "Network" "Player" ];
 | 
			
		||||
      comment = "Spotify client with native GUI";
 | 
			
		||||
      exec = "psst-gui";
 | 
			
		||||
      extraEntries = "Keywords=spotify;music;";
 | 
			
		||||
      keywords = [ "spotify" "music" ];
 | 
			
		||||
      icon = "spotify";
 | 
			
		||||
      type = "Application";
 | 
			
		||||
    })
 | 
			
		||||
  ];
 | 
			
		||||
 | 
			
		||||
  meta = with stdenv.lib; {
 | 
			
		||||
  meta = with lib; {
 | 
			
		||||
    description = "Fast and multi-platform Spotify client with native GUI ";
 | 
			
		||||
    homepage = "https://github.com/jpochyla/psst";
 | 
			
		||||
    license = licenses.mit;
 | 
			
		||||
 
 | 
			
		||||
@@ -2,12 +2,10 @@ diff --git a/include/components/types.hpp b/include/components/types.hpp
 | 
			
		||||
index 8125d4b..c435f4a 100644
 | 
			
		||||
--- a/include/components/types.hpp
 | 
			
		||||
+++ b/include/components/types.hpp
 | 
			
		||||
@@ -57,7 +57,7 @@ enum class controltag {
 | 
			
		||||
   R,  // Reset all open tags (B, F, T, o, u). Used at module edges
 | 
			
		||||
@@ -43,5 +43,6 @@ enum class controltag {
 | 
			
		||||
   DOUBLE_MIDDLE,
 | 
			
		||||
   DOUBLE_RIGHT,
 | 
			
		||||
+  EXTRA,
 | 
			
		||||
   // Terminator value, do not use
 | 
			
		||||
   BTN_COUNT,
 | 
			
		||||
 };
 | 
			
		||||
 | 
			
		||||
-enum class mousebtn { NONE = 0, LEFT, MIDDLE, RIGHT, SCROLL_UP, SCROLL_DOWN, DOUBLE_LEFT, DOUBLE_MIDDLE, DOUBLE_RIGHT };
 | 
			
		||||
+enum class mousebtn { NONE = 0, LEFT, MIDDLE, RIGHT, SCROLL_UP, SCROLL_DOWN, DOUBLE_LEFT, DOUBLE_MIDDLE, DOUBLE_RIGHT, EXTRA };
 | 
			
		||||
 | 
			
		||||
 enum class strut {
 | 
			
		||||
   LEFT = 0,
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										48
									
								
								pkgs/applications/networking/protonmail-bridge/common.nix
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										48
									
								
								pkgs/applications/networking/protonmail-bridge/common.nix
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,48 @@
 | 
			
		||||
{ lib
 | 
			
		||||
, fetchFromGitHub
 | 
			
		||||
, buildGoModule
 | 
			
		||||
, pkg-config
 | 
			
		||||
, libsecret
 | 
			
		||||
}:
 | 
			
		||||
 | 
			
		||||
{ pname
 | 
			
		||||
, tags
 | 
			
		||||
, ...
 | 
			
		||||
}@args:
 | 
			
		||||
 | 
			
		||||
buildGoModule (lib.recursiveUpdate args rec {
 | 
			
		||||
  inherit pname;
 | 
			
		||||
  version = "1.8.10";
 | 
			
		||||
 | 
			
		||||
  src = fetchFromGitHub {
 | 
			
		||||
    owner = "ProtonMail";
 | 
			
		||||
    repo = "proton-bridge";
 | 
			
		||||
    rev = "br-${version}";
 | 
			
		||||
    sha256 = "1na8min9cmn82lpad58abw6837k303fr09l6cvzswaxs73f231ig";
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
  vendorSha256 = "1219xa1347877bfhnid15y6w9s4hf1czbrmll2iha4gpsmg066bb";
 | 
			
		||||
 | 
			
		||||
  nativeBuildInputs = (args.nativeBuildInputs or [ ]) ++ [
 | 
			
		||||
    pkg-config
 | 
			
		||||
  ];
 | 
			
		||||
 | 
			
		||||
  buildInputs = (args.buildInputs or [ ]) ++ [
 | 
			
		||||
    libsecret
 | 
			
		||||
  ];
 | 
			
		||||
 | 
			
		||||
  inherit tags;
 | 
			
		||||
 | 
			
		||||
  ldflags = [
 | 
			
		||||
    "-X github.com/ProtonMail/proton-bridge/pkg/constants.Version=${version}"
 | 
			
		||||
    "-X github.com/ProtonMail/proton-bridge/pkg/constants.Revision=${version}"
 | 
			
		||||
    "-X github.com/ProtonMail/proton-bridge/pkg/constants.BuildDate=unknown"
 | 
			
		||||
  ];
 | 
			
		||||
 | 
			
		||||
  meta = with lib; {
 | 
			
		||||
    description = "Integrate ProtonMail paid account with any program that supports IMAP and SMTP";
 | 
			
		||||
    homepage = "https://protonmail.com";
 | 
			
		||||
    license = licenses.gpl3;
 | 
			
		||||
    plaforms = platforms.x86_64;
 | 
			
		||||
  };
 | 
			
		||||
})
 | 
			
		||||
@@ -1,4 +1,5 @@
 | 
			
		||||
{ stdenv
 | 
			
		||||
, lib
 | 
			
		||||
, fetchFromGitHub
 | 
			
		||||
, buildGoModule
 | 
			
		||||
 | 
			
		||||
@@ -9,60 +10,11 @@
 | 
			
		||||
, qtbase
 | 
			
		||||
, qtdoc
 | 
			
		||||
}:
 | 
			
		||||
 | 
			
		||||
let
 | 
			
		||||
 | 
			
		||||
  builder =
 | 
			
		||||
    { pname
 | 
			
		||||
    , tags
 | 
			
		||||
    , ...
 | 
			
		||||
    }@args:
 | 
			
		||||
 | 
			
		||||
    buildGoModule (stdenv.lib.recursiveUpdate args rec {
 | 
			
		||||
      inherit pname;
 | 
			
		||||
      version = "1.5.6";
 | 
			
		||||
 | 
			
		||||
      src = fetchFromGitHub {
 | 
			
		||||
        owner = "ProtonMail";
 | 
			
		||||
        repo = "proton-bridge";
 | 
			
		||||
        rev = "br-${version}";
 | 
			
		||||
        sha256 = "1na8min9cmn82lpad58abw6837k303fr09l6cvzswaxs73f231ig";
 | 
			
		||||
      };
 | 
			
		||||
 | 
			
		||||
      vendorSha256 = "1219xa1347877bfhnid15y6w9s4hf1czbrmll2iha4gpsmg066bb";
 | 
			
		||||
 | 
			
		||||
      nativeBuildInputs = (args.nativeBuildInputs or [ ]) ++ [
 | 
			
		||||
        pkg-config
 | 
			
		||||
      ];
 | 
			
		||||
 | 
			
		||||
      buildInputs = (args.buildInputs or [ ]) ++ [
 | 
			
		||||
        libsecret
 | 
			
		||||
      ];
 | 
			
		||||
 | 
			
		||||
      buildFlagsArray =
 | 
			
		||||
        let
 | 
			
		||||
          t = "github.com/ProtonMail/proton-bridge/pkg/constants";
 | 
			
		||||
        in
 | 
			
		||||
        [
 | 
			
		||||
          "-tags=${tags}"
 | 
			
		||||
          ''
 | 
			
		||||
            -ldflags=
 | 
			
		||||
              -X ${t}.Version=${version}
 | 
			
		||||
              -X ${t}.Revision=unknown
 | 
			
		||||
              -X ${t}.BuildDate=unknown
 | 
			
		||||
          ''
 | 
			
		||||
        ];
 | 
			
		||||
 | 
			
		||||
      meta = with stdenv.lib; {
 | 
			
		||||
        description = "Integrate ProtonMail paid account with any program that supports IMAP and SMTP";
 | 
			
		||||
        homepage = "https://protonmail.com";
 | 
			
		||||
        license = licenses.gpl3;
 | 
			
		||||
        plaforms = platforms.x86_64;
 | 
			
		||||
      };
 | 
			
		||||
    });
 | 
			
		||||
 | 
			
		||||
  builder = import ./common.nix {
 | 
			
		||||
    inherit lib fetchFromGitHub buildGoModule libsecret pkg-config;
 | 
			
		||||
  };
 | 
			
		||||
in
 | 
			
		||||
 | 
			
		||||
{
 | 
			
		||||
  protonmail-bridge = builder (import ./app.nix { inherit qtbase go goModules; });
 | 
			
		||||
  protonmail-bridge-headless = builder (import ./headless.nix { });
 | 
			
		||||
 
 | 
			
		||||
@@ -1,30 +1,17 @@
 | 
			
		||||
{}:
 | 
			
		||||
 | 
			
		||||
rec {
 | 
			
		||||
{
 | 
			
		||||
  pname = "protonmail-bridge-headless";
 | 
			
		||||
 | 
			
		||||
  tags = "pmapi_prod nogui";
 | 
			
		||||
  tags = [ "pmapi_prod" "nogui" ];
 | 
			
		||||
 | 
			
		||||
  # FIXME: There's something fucky going on in the buildFlagsArray
 | 
			
		||||
  # substitution. I shouldn't need to do this.
 | 
			
		||||
  buildPhase =
 | 
			
		||||
    let
 | 
			
		||||
      t = "github.com/ProtonMail/proton-bridge/pkg/constants";
 | 
			
		||||
    in
 | 
			
		||||
    ''
 | 
			
		||||
      runHook preBuild
 | 
			
		||||
 | 
			
		||||
      go install \
 | 
			
		||||
        -tags="${tags}" \
 | 
			
		||||
        -ldflags="-X ${t}.Version=1.3.2 -X ${t}.Revision=unknown -X ${t}.BuildDate=unknown" \
 | 
			
		||||
        cmd/Desktop-Bridge/main.go
 | 
			
		||||
      mv $GOPATH/bin/main $GOPATH/bin/Desktop-Bridge
 | 
			
		||||
        
 | 
			
		||||
      runHook postBuild
 | 
			
		||||
    '';
 | 
			
		||||
  # REVIEW: Some issue with IMAP tests that probably fail due to network
 | 
			
		||||
  # sandboxing.
 | 
			
		||||
  doCheck = false;
 | 
			
		||||
 | 
			
		||||
  # Fix up name.
 | 
			
		||||
  postInstall = ''
 | 
			
		||||
    mv $out/bin/Desktop-Bridge $out/bin/protonmail-bridge
 | 
			
		||||
    mv $out/bin/Import-Export $out/bin/protonmail-import-export
 | 
			
		||||
  '';
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -0,0 +1,55 @@
 | 
			
		||||
{ stdenv
 | 
			
		||||
, lib
 | 
			
		||||
, fetchFromGitHub
 | 
			
		||||
 | 
			
		||||
, alacritty
 | 
			
		||||
 | 
			
		||||
, fontconfig
 | 
			
		||||
, freetype
 | 
			
		||||
, libglvnd
 | 
			
		||||
, libxcb
 | 
			
		||||
}:
 | 
			
		||||
 | 
			
		||||
alacritty.overrideAttrs (oldAttrs: rec {
 | 
			
		||||
  pname = "${oldAttrs.pname}-ligatures";
 | 
			
		||||
  version = "0.7.2.20210209.g3ed0430";
 | 
			
		||||
 | 
			
		||||
  src = fetchFromGitHub {
 | 
			
		||||
    owner = "zenixls2";
 | 
			
		||||
    repo = "alacritty";
 | 
			
		||||
    fetchSubmodules = true;
 | 
			
		||||
    rev = "3ed043046fc74f288d4c8fa7e4463dc201213500";
 | 
			
		||||
    sha256 = "1dGk4ORzMSUQhuKSt5Yo7rOJCJ5/folwPX2tLiu0suA=";
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
  cargoDeps = oldAttrs.cargoDeps.overrideAttrs (lib.const {
 | 
			
		||||
    name = "${pname}-${version}-vendor.tar.gz";
 | 
			
		||||
    inherit src;
 | 
			
		||||
    outputHash = "pONu6caJmEKnbr7j+o9AyrYNpS4Q8OEjNZOhGTalncc=";
 | 
			
		||||
  });
 | 
			
		||||
 | 
			
		||||
  ligatureInputs = [
 | 
			
		||||
    fontconfig
 | 
			
		||||
    freetype
 | 
			
		||||
    libglvnd
 | 
			
		||||
    stdenv.cc.cc.lib
 | 
			
		||||
    libxcb
 | 
			
		||||
  ];
 | 
			
		||||
 | 
			
		||||
  preferLocalBuild = true;
 | 
			
		||||
 | 
			
		||||
  buildInputs = (oldAttrs.buildInputs or [ ]) ++ ligatureInputs;
 | 
			
		||||
 | 
			
		||||
  # HACK: One of the ligature libraries required the C++ stdlib at runtime,
 | 
			
		||||
  # and I can't work out a better way to push it to the RPATH.
 | 
			
		||||
  postInstall = lib.optional (!stdenv.isDarwin) ''
 | 
			
		||||
    patchelf \
 | 
			
		||||
      --set-rpath ${lib.makeLibraryPath ligatureInputs}:"$(patchelf --print-rpath $out/bin/alacritty)" \
 | 
			
		||||
      $out/bin/alacritty
 | 
			
		||||
  '';
 | 
			
		||||
 | 
			
		||||
  meta = oldAttrs.meta // {
 | 
			
		||||
    description = "Alacritty with ligature patch applied";
 | 
			
		||||
    homepage = "https://github.com/zenixls2/alacritty/tree/ligature";
 | 
			
		||||
  };
 | 
			
		||||
})
 | 
			
		||||
@@ -1,4 +1,5 @@
 | 
			
		||||
{ stdenv
 | 
			
		||||
, lib
 | 
			
		||||
, fetchFromGitLab
 | 
			
		||||
, fetchzip
 | 
			
		||||
 | 
			
		||||
@@ -62,10 +63,11 @@ stdenv.mkDerivation rec {
 | 
			
		||||
 | 
			
		||||
  passthru.providedSessions = [ "cardboard" ];
 | 
			
		||||
 | 
			
		||||
  meta = {
 | 
			
		||||
  meta = with lib; {
 | 
			
		||||
    description = "Scrollable tiling Wayland compositor designed with laptops in mind";
 | 
			
		||||
    homepage = "https://gitlab.com/cardboardwm/cardboard";
 | 
			
		||||
    license = stdenv.lib.licenses.gpl3;
 | 
			
		||||
    license = licenses.gpl3;
 | 
			
		||||
    platforms = wlroots.meta.platforms;
 | 
			
		||||
    broken = true;
 | 
			
		||||
  };
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -1,4 +1,5 @@
 | 
			
		||||
{ stdenv
 | 
			
		||||
, lib
 | 
			
		||||
, fetchFromGitHub
 | 
			
		||||
, buildGoModule
 | 
			
		||||
, makeWrapper
 | 
			
		||||
@@ -59,7 +60,7 @@ buildGoModule rec {
 | 
			
		||||
    done
 | 
			
		||||
  '';
 | 
			
		||||
 | 
			
		||||
  meta = with stdenv.lib; {
 | 
			
		||||
  meta = with lib; {
 | 
			
		||||
    homepage = "https://github.com/therecipe/qt";
 | 
			
		||||
    description = "Qt bindings for Go";
 | 
			
		||||
    license = licenses.lgpl3;
 | 
			
		||||
 
 | 
			
		||||
@@ -1,4 +1,5 @@
 | 
			
		||||
{ stdenv
 | 
			
		||||
, lib
 | 
			
		||||
, fetchFromGitHub
 | 
			
		||||
 | 
			
		||||
, coreutils
 | 
			
		||||
@@ -26,7 +27,7 @@ stdenv.mkDerivation rec {
 | 
			
		||||
    mkdir -p $out/include $out/lib
 | 
			
		||||
  '';
 | 
			
		||||
 | 
			
		||||
  meta = with stdenv.lib; {
 | 
			
		||||
  meta = with lib; {
 | 
			
		||||
    homepage = "https://github.com/xant/libhl";
 | 
			
		||||
    description = "Simple and fast C library implementing a thread-safe API to manage hash-tables, linked lists, lock-free ring buffers and queues ";
 | 
			
		||||
    license = licenses.lgpl3;
 | 
			
		||||
 
 | 
			
		||||
@@ -1,4 +1,5 @@
 | 
			
		||||
{ stdenv
 | 
			
		||||
, lib
 | 
			
		||||
, buildPythonPackage
 | 
			
		||||
, fetchPypi
 | 
			
		||||
}:
 | 
			
		||||
@@ -14,9 +15,9 @@ buildPythonPackage rec {
 | 
			
		||||
 | 
			
		||||
  doCheck = false;
 | 
			
		||||
 | 
			
		||||
  meta = {
 | 
			
		||||
  meta = with lib; {
 | 
			
		||||
    homepage = "https://stuffivelearned.org/doku.php?id=programming:python:py-sonic";
 | 
			
		||||
    license = stdenv.lib.licenses.gpl3;
 | 
			
		||||
    license = licenses.gpl3;
 | 
			
		||||
    description = "A python wrapper library for the Subsonic REST API";
 | 
			
		||||
  };
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										42
									
								
								pkgs/games/atlauncher/default.nix
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										42
									
								
								pkgs/games/atlauncher/default.nix
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,42 @@
 | 
			
		||||
{ stdenv
 | 
			
		||||
, lib
 | 
			
		||||
, fetchurl
 | 
			
		||||
, makeWrapper
 | 
			
		||||
, jre
 | 
			
		||||
, udev
 | 
			
		||||
}:
 | 
			
		||||
 | 
			
		||||
stdenv.mkDerivation rec {
 | 
			
		||||
  pname = "atlauncher";
 | 
			
		||||
  version = "3.4.20.2";
 | 
			
		||||
 | 
			
		||||
  src = fetchurl {
 | 
			
		||||
    url = "https://github.com/ATLauncher/ATLauncher/releases/download/v${version}/ATLauncher-${version}.jar";
 | 
			
		||||
    hash = "sha256-YnCDs67BVhJ5rwY6jTbfgHKPbavtmcIMd16AWMBUDgk=";
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
  dontUnpack = true;
 | 
			
		||||
 | 
			
		||||
  nativeBuildInputs = [ makeWrapper ];
 | 
			
		||||
 | 
			
		||||
  installPhase = ''
 | 
			
		||||
    mkdir -p $out/bin $out/share/java
 | 
			
		||||
    cp $src $out/share/java/ATLauncher.jar
 | 
			
		||||
    makeWrapper ${jre}/bin/java $out/bin/atlauncher \
 | 
			
		||||
      --prefix LD_LIBRARY_PATH : "${lib.makeLibraryPath [ udev ]}" \
 | 
			
		||||
      --add-flags "-jar $out/share/java/ATLauncher.jar" \
 | 
			
		||||
      --add-flags "--working-dir \''${XDG_DATA_HOME:-\$HOME/.local/share}/ATLauncher"
 | 
			
		||||
  '';
 | 
			
		||||
 | 
			
		||||
  meta = with lib; {
 | 
			
		||||
    description = "Minecraft launcher";
 | 
			
		||||
    longDescription = ''
 | 
			
		||||
      ATLauncher is a Launcher for Minecraft which integrates multiple different
 | 
			
		||||
      ModPacks to allow you to download and install ModPacks easily and quickly.
 | 
			
		||||
    '';
 | 
			
		||||
    sourceProvenance = with sourceTypes; [ binaryBytecode ];
 | 
			
		||||
    license = licenses.gpl3Only;
 | 
			
		||||
    platforms = platforms.all;
 | 
			
		||||
    homepage = "https://atlauncher.com/";
 | 
			
		||||
  };
 | 
			
		||||
}
 | 
			
		||||
@@ -1,4 +1,5 @@
 | 
			
		||||
{ stdenv
 | 
			
		||||
, lib
 | 
			
		||||
, fetchFromGitHub
 | 
			
		||||
 | 
			
		||||
, autoreconfHook
 | 
			
		||||
@@ -25,10 +26,10 @@ stdenv.mkDerivation rec {
 | 
			
		||||
 | 
			
		||||
  configureFlags = [ "--with-moduledir=\${out}/lib/security" ];
 | 
			
		||||
 | 
			
		||||
  meta = with stdenv.lib; {
 | 
			
		||||
  meta = with lib; {
 | 
			
		||||
    homepage = "https://github.com/cruegge/pam-gnupg";
 | 
			
		||||
    description = "Unlock GnuPG keys on login";
 | 
			
		||||
    license = licenses.gpl3;
 | 
			
		||||
    inherit (pam.meta) platforms;
 | 
			
		||||
    platforms = pam.meta.platforms;
 | 
			
		||||
  };
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -1,4 +1,5 @@
 | 
			
		||||
{ stdenv
 | 
			
		||||
, lib
 | 
			
		||||
, fetchFromGitHub
 | 
			
		||||
, installShellFiles
 | 
			
		||||
 | 
			
		||||
@@ -25,10 +26,10 @@ stdenv.mkDerivation {
 | 
			
		||||
    installShellCompletion --zsh _zshz
 | 
			
		||||
  '';
 | 
			
		||||
 | 
			
		||||
  meta = {
 | 
			
		||||
  meta = with lib; {
 | 
			
		||||
    description = ''Jump quickly to directories that you have visited "frecently." A native ZSH port of z.sh.'';
 | 
			
		||||
    homepage = "https://github.com/agkozak/zsh-z";
 | 
			
		||||
    license = stdenv.lib.licenses.mit;
 | 
			
		||||
    license = licenses.mit;
 | 
			
		||||
    platforms = zsh.meta.platforms;
 | 
			
		||||
  };
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -1,4 +1,5 @@
 | 
			
		||||
{ stdenv
 | 
			
		||||
, lib
 | 
			
		||||
, fetchFromGitHub
 | 
			
		||||
 | 
			
		||||
, python3Packages
 | 
			
		||||
@@ -20,7 +21,7 @@ python3Packages.buildPythonApplication rec {
 | 
			
		||||
    pyyaml
 | 
			
		||||
  ];
 | 
			
		||||
 | 
			
		||||
  meta = with stdenv.lib; {
 | 
			
		||||
  meta = with lib; {
 | 
			
		||||
    description = "Fan controller for AMD graphics cards running the amdgpu driver on Linux";
 | 
			
		||||
    homepage = "https://github.com/chestm007/amdgpu-fan";
 | 
			
		||||
    license = licenses.gpl2;
 | 
			
		||||
 
 | 
			
		||||
@@ -1,16 +1,18 @@
 | 
			
		||||
{ stdenv
 | 
			
		||||
, lib
 | 
			
		||||
, fetchFromGitHub
 | 
			
		||||
 | 
			
		||||
, qtbase
 | 
			
		||||
, qmake
 | 
			
		||||
, wrapQtAppsHook ? null # Temporary backwards compatibility
 | 
			
		||||
}:
 | 
			
		||||
 | 
			
		||||
stdenv.mkDerivation rec {
 | 
			
		||||
  pname = "radeon-profile-daemon";
 | 
			
		||||
  version = "20190603.g06qxq2h";
 | 
			
		||||
 | 
			
		||||
  nativeBuildInputs = [ qmake ];
 | 
			
		||||
  buildInputs = [ qtbase ];
 | 
			
		||||
  nativeBuildInputs = [ qmake wrapQtAppsHook ];
 | 
			
		||||
 | 
			
		||||
  src = (
 | 
			
		||||
    fetchFromGitHub {
 | 
			
		||||
@@ -26,7 +28,7 @@ stdenv.mkDerivation rec {
 | 
			
		||||
      --replace "/usr/" "$out/"
 | 
			
		||||
  '';
 | 
			
		||||
 | 
			
		||||
  meta = with stdenv.lib; {
 | 
			
		||||
  meta = with lib; {
 | 
			
		||||
    description = "System daemon for reading current clocks of AMD Radeon cards";
 | 
			
		||||
    homepage = "https://github.com/marazmista/radeon-profile-daemon";
 | 
			
		||||
    license = licenses.gpl2Plus;
 | 
			
		||||
 
 | 
			
		||||
@@ -1,4 +1,5 @@
 | 
			
		||||
{ stdenv
 | 
			
		||||
, lib
 | 
			
		||||
, fetchFromGitHub
 | 
			
		||||
, makeWrapper
 | 
			
		||||
 | 
			
		||||
@@ -40,7 +41,7 @@ stdenv.mkDerivation rec {
 | 
			
		||||
      --replace /usr/bin/samrewritten $out/bin/samrewritten
 | 
			
		||||
  '';
 | 
			
		||||
 | 
			
		||||
  meta = with stdenv.lib; {
 | 
			
		||||
  meta = with lib; {
 | 
			
		||||
    description = "Steam Achievement Manager For Linux";
 | 
			
		||||
    homepage = "https://github.com/PaulCombal/SamRewritten";
 | 
			
		||||
    license = licenses.gpl3;
 | 
			
		||||
 
 | 
			
		||||
@@ -1,7 +1,9 @@
 | 
			
		||||
{ stdenv
 | 
			
		||||
, lib
 | 
			
		||||
, fetchFromGitHub
 | 
			
		||||
 | 
			
		||||
, python2Packages
 | 
			
		||||
, python3Packages
 | 
			
		||||
, lame
 | 
			
		||||
 | 
			
		||||
, aacSupport ? false, faac
 | 
			
		||||
, alacSupport ? false, libav
 | 
			
		||||
@@ -18,25 +20,27 @@ assert m4aSupport || mp4Support -> fdk-aac-encoder.meta.available;
 | 
			
		||||
assert oggSupport               -> vorbisTools.meta.available;
 | 
			
		||||
assert opusSupport              -> opusTools.meta.available;
 | 
			
		||||
 | 
			
		||||
python2Packages.buildPythonApplication rec {
 | 
			
		||||
python3Packages.buildPythonApplication rec {
 | 
			
		||||
  pname = "spotify-ripper";
 | 
			
		||||
  version = "20161231.gd046419";
 | 
			
		||||
  version = "20210724.5bfd3f7";
 | 
			
		||||
 | 
			
		||||
  src = fetchFromGitHub {
 | 
			
		||||
    owner = "hbashton";
 | 
			
		||||
    owner = "ast261";
 | 
			
		||||
    repo = pname;
 | 
			
		||||
    rev = "d0464193dead7bd3ac7580e98bde86a0f323acae";
 | 
			
		||||
    sha256 = "003d6br20f1cf4qvmpl62bk0k4h4v66ib76wn36c23bnh9x5q806";
 | 
			
		||||
    rev = "5bfd3f7a52f2767b433fd315145409837a3c33f0";
 | 
			
		||||
    sha256 = "sha256-LLunGzs9Mg4S00Su260b+M5w/XwS+kICl/YXQdR/cPI=";
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
  propagatedBuildInputs = (with python2Packages; [
 | 
			
		||||
  propagatedBuildInputs = (with python3Packages; [
 | 
			
		||||
    colorama
 | 
			
		||||
    mutagen
 | 
			
		||||
    pyspotify
 | 
			
		||||
    requests
 | 
			
		||||
    schedule
 | 
			
		||||
    setuptools
 | 
			
		||||
    spotipy
 | 
			
		||||
  ]) ++ [
 | 
			
		||||
    lame
 | 
			
		||||
    (if flacSupport then flac else null)
 | 
			
		||||
    (if alacSupport then libav else null)
 | 
			
		||||
    (if aacSupport then faac else null)
 | 
			
		||||
@@ -48,7 +52,7 @@ python2Packages.buildPythonApplication rec {
 | 
			
		||||
  # Remove impure executables.
 | 
			
		||||
  patches = [ ./fix-setup.patch ];
 | 
			
		||||
 | 
			
		||||
  meta = {
 | 
			
		||||
  meta = with lib; {
 | 
			
		||||
    description = "Rip Spotify URIs to audio files, including ID3 tags and cover art";
 | 
			
		||||
    longDescription = ''
 | 
			
		||||
      Spotify-ripper is a small ripper script for Spotify that rips Spotify URIs
 | 
			
		||||
@@ -58,6 +62,6 @@ python2Packages.buildPythonApplication rec {
 | 
			
		||||
    '';
 | 
			
		||||
    homepage = "https://github.com/hbashton/spotify-ripper";
 | 
			
		||||
    # spotify-ripper itself is MIT, but the upstream libspotify is unfree.
 | 
			
		||||
    license = stdenv.lib.licenses.unfree;
 | 
			
		||||
    license = licenses.unfree;
 | 
			
		||||
  };
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -2,7 +2,7 @@ diff --git a/setup.py b/setup.py
 | 
			
		||||
index a800b3b..8967921 100755
 | 
			
		||||
--- a/setup.py
 | 
			
		||||
+++ b/setup.py
 | 
			
		||||
@@ -22,14 +22,13 @@ setup(
 | 
			
		||||
@@ -33,14 +33,13 @@ setup(
 | 
			
		||||
     name='spotify-ripper',
 | 
			
		||||
     version='2.9.1',
 | 
			
		||||
     packages=find_packages(exclude=["tests"]),
 | 
			
		||||
@@ -18,11 +18,7 @@ index a800b3b..8967921 100755
 | 
			
		||||
         ],
 | 
			
		||||
     },
 | 
			
		||||
 
 | 
			
		||||
@@ -67,7 +66,5 @@ setup(
 | 
			
		||||
         'Programming Language :: Python :: 3',
 | 
			
		||||
         'Programming Language :: Python :: 3.4',
 | 
			
		||||
     ],
 | 
			
		||||
-    long_description=_read('README.rst'),
 | 
			
		||||
 )
 | 
			
		||||
@@ -121,3 +121,2 @@ setup(
 | 
			
		||||
     return True
 | 
			
		||||
 
 | 
			
		||||
-create_default_dir()
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										36
									
								
								pkgs/tools/misc/ytarchive/default.nix
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										36
									
								
								pkgs/tools/misc/ytarchive/default.nix
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,36 @@
 | 
			
		||||
{ stdenv
 | 
			
		||||
, lib
 | 
			
		||||
, fetchFromGitHub
 | 
			
		||||
 | 
			
		||||
, python3
 | 
			
		||||
, ffmpeg }:
 | 
			
		||||
 | 
			
		||||
stdenv.mkDerivation rec {
 | 
			
		||||
  pname = "ytarchive";
 | 
			
		||||
  version = "0.2.2";
 | 
			
		||||
 | 
			
		||||
  src = fetchFromGitHub {
 | 
			
		||||
    owner = "Kethsar";
 | 
			
		||||
    repo = "ytarchive";
 | 
			
		||||
    rev = "v${version}";
 | 
			
		||||
    sha256 = "xT45FF0ztWQXzQgYztl2YKiI2iGJfnCXgCMw8gOmxzM=";
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
  propagatedBuildInputs = [
 | 
			
		||||
    python3
 | 
			
		||||
    ffmpeg
 | 
			
		||||
  ];
 | 
			
		||||
 | 
			
		||||
  phases = [ "unpackPhase" "installPhase" "fixupPhase" ];
 | 
			
		||||
 | 
			
		||||
  installPhase = ''
 | 
			
		||||
    install -Dm00755 ytarchive.py $out/bin/ytarchive
 | 
			
		||||
  '';
 | 
			
		||||
 | 
			
		||||
  meta = with lib; {
 | 
			
		||||
    description = "Garbage Youtube livestream downloader";
 | 
			
		||||
    homepage = "https://github.com/Kethsar/ytarchive";
 | 
			
		||||
    license = licenses.mit;
 | 
			
		||||
    platforms = python3.meta.platforms;
 | 
			
		||||
  };
 | 
			
		||||
}
 | 
			
		||||
@@ -2,47 +2,9 @@
 | 
			
		||||
 | 
			
		||||
rec {
 | 
			
		||||
  # Alacritty with the unmerged ligature patches applied.
 | 
			
		||||
  alacritty-ligatures = pkgs.alacritty.overrideAttrs (oldAttrs: rec {
 | 
			
		||||
    pname = "${oldAttrs.pname}-ligatures";
 | 
			
		||||
    version = "0.7.1.20210107.gada2680";
 | 
			
		||||
  alacritty-ligatures = pkgs.callPackage ../applications/terminal-emulators/alacritty-ligatures { };
 | 
			
		||||
 | 
			
		||||
    src = pkgs.fetchFromGitHub {
 | 
			
		||||
      owner = "zenixls2";
 | 
			
		||||
      repo = "alacritty";
 | 
			
		||||
      fetchSubmodules = true;
 | 
			
		||||
      rev = "ada2680e79a8f53cd350263c8cc91d2e2a264d81";
 | 
			
		||||
      sha256 = "0c0k1ib1dl35731zyjb32apyn28xc63mhbwsig5mz3hnkyk5nisr";
 | 
			
		||||
    };
 | 
			
		||||
 | 
			
		||||
    cargoDeps = oldAttrs.cargoDeps.overrideAttrs (pkgs.lib.const {
 | 
			
		||||
      name = "${pname}-${version}-vendor.tar.gz";
 | 
			
		||||
      inherit src;
 | 
			
		||||
      outputHash = "1d1yz4xmal0f3c0pcn59lxfh5a3532nv7dv7s95svvi8qsvnk9gv";
 | 
			
		||||
    });
 | 
			
		||||
 | 
			
		||||
    ligatureInputs = [
 | 
			
		||||
      pkgs.fontconfig
 | 
			
		||||
      pkgs.freetype
 | 
			
		||||
      pkgs.libglvnd
 | 
			
		||||
      pkgs.stdenv.cc.cc.lib
 | 
			
		||||
      pkgs.xlibs.libxcb
 | 
			
		||||
    ];
 | 
			
		||||
 | 
			
		||||
    buildInputs = (oldAttrs.buildInputs or []) ++ ligatureInputs;
 | 
			
		||||
 | 
			
		||||
    # HACK: One of the ligature libraries required the C++ stdlib at runtime,
 | 
			
		||||
    # and I can't work out a better way to push it to the RPATH.
 | 
			
		||||
    postInstall = pkgs.lib.optional (!pkgs.stdenv.isDarwin) ''
 | 
			
		||||
      patchelf \
 | 
			
		||||
        --set-rpath ${pkgs.lib.makeLibraryPath ligatureInputs}:"$(patchelf --show-rpath $out/bin/alacritty)" \
 | 
			
		||||
        $out/bin/alacritty
 | 
			
		||||
    '';
 | 
			
		||||
 | 
			
		||||
    meta = oldAttrs.meta // {
 | 
			
		||||
      description = "Alacritty with ligature patch applied";
 | 
			
		||||
      homepage = "https://github.com/zenixls2/alacritty/tree/ligature";
 | 
			
		||||
    };
 | 
			
		||||
  });
 | 
			
		||||
  atlauncher = pkgs.callPackage ../games/atlauncher { };
 | 
			
		||||
 | 
			
		||||
  amdgpu-fan = pkgs.callPackage ../tools/misc/amdgpu-fan { };
 | 
			
		||||
 | 
			
		||||
@@ -98,50 +60,6 @@ rec {
 | 
			
		||||
 | 
			
		||||
  psst = pkgs.callPackage ../applications/audio/psst { };
 | 
			
		||||
 | 
			
		||||
  python2Packages =
 | 
			
		||||
    let
 | 
			
		||||
      fixVersion =
 | 
			
		||||
        { package
 | 
			
		||||
        , version
 | 
			
		||||
        , sha256
 | 
			
		||||
        , extra ? (oldAttrs: { })
 | 
			
		||||
        }: package.overrideAttrs (oldAttrs: rec {
 | 
			
		||||
          inherit version;
 | 
			
		||||
          src = pkgs.python2Packages.fetchPypi {
 | 
			
		||||
            inherit (oldAttrs) pname;
 | 
			
		||||
            inherit version sha256;
 | 
			
		||||
          };
 | 
			
		||||
        } // extra oldAttrs);
 | 
			
		||||
    in
 | 
			
		||||
    pkgs.recurseIntoAttrs rec {
 | 
			
		||||
      colorama_0_3_3 = fixVersion {
 | 
			
		||||
        package = pkgs.python2Packages.colorama;
 | 
			
		||||
        version = "0.3.3";
 | 
			
		||||
        sha256 = "1716z9pq1r5ys3nkg7wdrb3h2f9rmd0zdxpxzmx3bgwgf6xg48gb";
 | 
			
		||||
      };
 | 
			
		||||
 | 
			
		||||
      mutagen_1_30 = fixVersion {
 | 
			
		||||
        package = pkgs.python2Packages.mutagen;
 | 
			
		||||
        version = "1.30";
 | 
			
		||||
        sha256 = "0kv2gjnzbj1w0bswmxm7wi05x6ypi7jk52s0lb8gw8s459j41gyd";
 | 
			
		||||
        extra = oldAttrs: {
 | 
			
		||||
          patches = [ ];
 | 
			
		||||
        };
 | 
			
		||||
      };
 | 
			
		||||
 | 
			
		||||
      pyspotify_2_0_5 = fixVersion {
 | 
			
		||||
        package = pkgs.python2Packages.pyspotify;
 | 
			
		||||
        version = "2.0.5";
 | 
			
		||||
        sha256 = "0y16c024rrvbvfdqj1n0k4b25b1nbza3i7kspg5b0ci2src1rm7v";
 | 
			
		||||
      };
 | 
			
		||||
 | 
			
		||||
      overlay = {
 | 
			
		||||
        colorama = colorama_0_3_3;
 | 
			
		||||
        mutagen = mutagen_1_30;
 | 
			
		||||
        pyspotify = pyspotify_2_0_5;
 | 
			
		||||
      };
 | 
			
		||||
    };
 | 
			
		||||
 | 
			
		||||
  python3Packages = pkgs.recurseIntoAttrs {
 | 
			
		||||
    py-sonic = pkgs.python3.pkgs.callPackage ../development/python-modules/py-sonic { };
 | 
			
		||||
  };
 | 
			
		||||
@@ -158,12 +76,9 @@ rec {
 | 
			
		||||
 | 
			
		||||
  samrewritten = pkgs.callPackage ../tools/misc/samrewritten { };
 | 
			
		||||
 | 
			
		||||
  spotify-ripper = pkgs.callPackage ../tools/misc/spotify-ripper {
 | 
			
		||||
    # NOTE: Not available in 20.03. Specifying it this way lets me cheat the
 | 
			
		||||
    # build auto-failing on 20.03 because of the attribute not existing.
 | 
			
		||||
    inherit (pkgs) fdk-aac-encoder;
 | 
			
		||||
    python2Packages = pkgs.python2Packages // python2Packages.overlay;
 | 
			
		||||
  };
 | 
			
		||||
  spotify-ripper = pkgs.callPackage ../tools/misc/spotify-ripper { };
 | 
			
		||||
 | 
			
		||||
  ytarchive = pkgs.callPackage ../tools/misc/ytarchive { };
 | 
			
		||||
 | 
			
		||||
  zsh-z = pkgs.callPackage ../shells/zsh/zsh-z { };
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user