Compare commits
3 Commits
Author | SHA1 | Date | |
---|---|---|---|
14dcb9aed6 | |||
d139d0ab78 | |||
b5126f56bb |
18
README.md
18
README.md
|
@ -4,28 +4,34 @@ This Nix derivation provides an attribute set with each package referenced by it
|
||||||
|
|
||||||
## Quick try
|
## Quick try
|
||||||
|
|
||||||
To quickly try a package `${PACKAGE_NAME}` from this repository, you can issue on the command line :
|
To quickly try a package `${PACKAGE_NAME}` from the latest version of this repository, you can issue on the command line :
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
nix-env -f 'https://git.marvid.fr/Tissevert/mynixpkgs/archive/0.1.0.tar.gz' -i ${PACKAGE_NAME}
|
nix-env -f 'https://git.marvid.fr/Tissevert/mynixpkgs/archive/main.tar.gz' -i ${PACKAGE_NAME}
|
||||||
|
```
|
||||||
|
|
||||||
|
It's easy to pin a precise version by replacing `main` by the tag your interested in like so :
|
||||||
|
|
||||||
|
```bash
|
||||||
|
nix-env -f 'https://git.marvid.fr/Tissevert/mynixpkgs/archive/0.1.2.tar.gz' -i ${PACKAGE_NAME}
|
||||||
```
|
```
|
||||||
|
|
||||||
## Declarative setup
|
## Declarative setup
|
||||||
|
|
||||||
To use this repository in a more reproducible and less imperative way, you can include the following snippet it in your `/etc/nixos/configuration.nix` or anywhere else you please :
|
To use this repository declaratively from within a nix expression (say, in your `/etc/nixos/configuration.nix`) instead of from the command line, you can include the following snippet :
|
||||||
|
|
||||||
```nix
|
```nix
|
||||||
let
|
let
|
||||||
tissevertpkgs = import (
|
tissevertpkgs = import (
|
||||||
fetchTarball https://git.marvid.fr/Tissevert/mynixpkgs/archive/0.1.0.tar.gz
|
fetchTarball https://git.marvid.fr/Tissevert/mynixpkgs/archive/main.tar.gz
|
||||||
) {};
|
) {};
|
||||||
in
|
in
|
||||||
```
|
```
|
||||||
|
|
||||||
Then, anywhere where you select packages like for instance in `environment.systemPackages` or in your `users.users.<name>.packages` my packages are available within the attribute set `tissevertpkgs` like this for instance :
|
Then, anywhere where you select packages, for instance in `environment.systemPackages` or in your `users.users.<name>.packages`, my packages are available within the attribute set `tissevertpkgs` like this for instance :
|
||||||
|
|
||||||
```nix
|
```nix
|
||||||
packages = [ pkgs.git pkgs.vim tissevertpkgs.SJW ]
|
packages = [ tissevertpkgs.SJW ]
|
||||||
```
|
```
|
||||||
|
|
||||||
## Current package selection
|
## Current package selection
|
||||||
|
|
18
default.nix
18
default.nix
|
@ -3,15 +3,15 @@ builtins.intersectAttrs {hablo = 1; SJW = 1;} (pkgs.haskellPackages.override {
|
||||||
overrides = self: super: {
|
overrides = self: super: {
|
||||||
hablo = self.callPackage (
|
hablo = self.callPackage (
|
||||||
{ mkDerivation, aeson, base, bytestring, Cabal, containers
|
{ mkDerivation, aeson, base, bytestring, Cabal, containers
|
||||||
, directory, filepath, lucid, mtl, optparse-applicative, parsec
|
, directory, filepath, lib, lucid, mtl, optparse-applicative
|
||||||
, SJW, stdenv, template, text, time, unix
|
, parsec, SJW, template, text, time, unix
|
||||||
}:
|
}:
|
||||||
mkDerivation {
|
mkDerivation {
|
||||||
pname = "hablo";
|
pname = "hablo";
|
||||||
version = "1.1.0.0";
|
version = "1.1.0.1";
|
||||||
src = builtins.fetchGit {
|
src = builtins.fetchGit {
|
||||||
url = "https://git.marvid.fr/Tissevert/hablo.git";
|
url = "https://git.marvid.fr/Tissevert/hablo.git";
|
||||||
ref = "v1.1.0.0";
|
ref = "v1.1.0.1";
|
||||||
};
|
};
|
||||||
isLibrary = true;
|
isLibrary = true;
|
||||||
isExecutable = true;
|
isExecutable = true;
|
||||||
|
@ -26,20 +26,20 @@ builtins.intersectAttrs {hablo = 1; SJW = 1;} (pkgs.haskellPackages.override {
|
||||||
];
|
];
|
||||||
homepage = "https://git.marvid.fr/Tissevert/hablo";
|
homepage = "https://git.marvid.fr/Tissevert/hablo";
|
||||||
description = "A minimalist static blog generator";
|
description = "A minimalist static blog generator";
|
||||||
license = stdenv.lib.licenses.bsd3;
|
license = lib.licenses.bsd3;
|
||||||
}
|
}
|
||||||
) {};
|
) {};
|
||||||
SJW = self.callPackage (
|
SJW = self.callPackage (
|
||||||
{ mkDerivation, attoparsec, base, Cabal, containers, directory
|
{ mkDerivation, attoparsec, base, Cabal, containers, directory
|
||||||
, filepath, mtl, optparse-applicative, random, stdenv, text, time
|
, filepath, lib, mtl, optparse-applicative, random, text, time
|
||||||
, unix
|
, unix
|
||||||
}:
|
}:
|
||||||
mkDerivation {
|
mkDerivation {
|
||||||
pname = "SJW";
|
pname = "SJW";
|
||||||
version = "0.1.2.2";
|
version = "0.1.2.3";
|
||||||
src = builtins.fetchGit {
|
src = builtins.fetchGit {
|
||||||
url = "https://git.marvid.fr/Tissevert/SJW.git";
|
url = "https://git.marvid.fr/Tissevert/SJW.git";
|
||||||
ref = "v0.1.2.2";
|
ref = "v0.1.2.3";
|
||||||
};
|
};
|
||||||
isLibrary = true;
|
isLibrary = true;
|
||||||
isExecutable = true;
|
isExecutable = true;
|
||||||
|
@ -54,7 +54,7 @@ builtins.intersectAttrs {hablo = 1; SJW = 1;} (pkgs.haskellPackages.override {
|
||||||
benchmarkHaskellDepends = [ base directory filepath random time ];
|
benchmarkHaskellDepends = [ base directory filepath random time ];
|
||||||
homepage = "https://git.marvid.fr/Tissevert/SJW";
|
homepage = "https://git.marvid.fr/Tissevert/SJW";
|
||||||
description = "The Simple Javascript Wrench is a very simple tool to pack several JS «modules» into a single script";
|
description = "The Simple Javascript Wrench is a very simple tool to pack several JS «modules» into a single script";
|
||||||
license = stdenv.lib.licenses.bsd3;
|
license = lib.licenses.bsd3;
|
||||||
}
|
}
|
||||||
) {};
|
) {};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue
Block a user